[New-bugs-announce] [issue20900] distutils register command should print text, not bytes repr

Éric Araujo report at bugs.python.org
Wed Mar 12 21:59:23 CET 2014


New submission from Éric Araujo:

“python3 setup.py register --show-response“ will display something like "----------b'xxx'----------".  The HTTP response body should be decoded to text for display, instead of the repr of a bytes object.

Setting the “easy” keyword: thanks to unittest.mock, writing a test for this should not be hard, and with a test we can have the confidence to change the code.

----------
components: Distutils
keywords: easy
messages: 213295
nosy: eric.araujo
priority: normal
severity: normal
stage: needs patch
status: open
title: distutils register command should print text, not bytes repr
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20900>
_______________________________________


More information about the New-bugs-announce mailing list