[issue21793] httplib client/server status refactor
Martin Panter
report at bugs.python.org
Fri Feb 20 23:39:19 CET 2015
Martin Panter added the comment:
One option might be changing log_request() from
self.log_message('"%s" %s %s',
self.requestline, str(code), str(size))
to
self.log_message('"%s" %s %s',
self.requestline, format(code), size)
Using str() is redundant with %s, and using format() instead invokes the int base class’s __format__() rather than the enum’s __repr__().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21793>
_______________________________________
More information about the Python-bugs-list
mailing list