]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 84614 via svnmerge from
authorÉric Araujo <merwok@netwok.org>
Wed, 8 Sep 2010 00:02:00 +0000 (00:02 +0000)
committerÉric Araujo <merwok@netwok.org>
Wed, 8 Sep 2010 00:02:00 +0000 (00:02 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84614 | eric.araujo | 2010-09-08 02:00:45 +0200 (mer., 08 sept. 2010) | 5 lines

  Follow-up to #9199: Fix str.join use, add newlines.

  Thanks to Konrad Delong for writing a test for upload_docs
  --show-response in distutils2, letting me catch my mistake.
........

Lib/distutils/command/upload.py

index 41df127799553c311f1b3e6d0faf9f7274d5736d..99e03d747c8a95e477f6c95f54575c7e221e0f68 100644 (file)
@@ -194,5 +194,5 @@ class upload(PyPIRCCommand):
             self.announce('Upload failed (%s): %s' % (r.status, r.reason),
                           log.ERROR)
         if self.show_response:
-            msg = ''.join('-' * 75, r.read(), '-' * 75)
+            msg = '\n'.join(('-' * 75, r.read(), '-' * 75))
             self.announce(msg, log.INFO)