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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21793>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to