Message236340
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__(). |
|
Date |
User |
Action |
Args |
2015-02-20 22:39:19 | martin.panter | set | recipients:
+ martin.panter, barry, rhettinger, orsenthil, r.david.murray, ethan.furman, python-dev, berker.peksag, serhiy.storchaka, demian.brecht |
2015-02-20 22:39:19 | martin.panter | set | messageid: <1424471959.64.0.359113301606.issue21793@psf.upfronthosting.co.za> |
2015-02-20 22:39:19 | martin.panter | link | issue21793 messages |
2015-02-20 22:39:19 | martin.panter | create | |
|