mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix TypeError on "setup.py upload --show-response".
This commit is contained in:
commit
20d5adea6a
5 changed files with 28 additions and 6 deletions
|
@ -196,5 +196,6 @@ class upload(PyPIRCCommand):
|
|||
self.announce('Upload failed (%s): %s' % (status, reason),
|
||||
log.ERROR)
|
||||
if self.show_response:
|
||||
msg = '\n'.join(('-' * 75, result.read(), '-' * 75))
|
||||
text = self._read_pypi_response(result)
|
||||
msg = '\n'.join(('-' * 75, text, '-' * 75))
|
||||
self.announce(msg, log.INFO)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue