mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #20900: distutils register command now decodes HTTP responses correctly
Initial patch by ingrid.
This commit is contained in:
parent
87a8bcc221
commit
904a2ef2e2
4 changed files with 21 additions and 4 deletions
|
|
@ -296,9 +296,9 @@ Your selection [default 1]: ''', log.INFO)
|
|||
result = 500, str(e)
|
||||
else:
|
||||
if self.show_response:
|
||||
data = result.read()
|
||||
data = self._read_pypi_response(result)
|
||||
result = 200, 'OK'
|
||||
if self.show_response:
|
||||
dashes = '-' * 75
|
||||
self.announce('%s%r%s' % (dashes, data, dashes))
|
||||
msg = '\n'.join(('-' * 75, data, '-' * 75))
|
||||
self.announce(msg, log.INFO)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue