Message236340
| Author |
martin.panter |
| Recipients |
barry, berker.peksag, demian.brecht, ethan.furman, martin.panter, orsenthil, python-dev, r.david.murray, rhettinger, serhiy.storchaka |
| Date |
2015年02月20日.22:39:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1424471959.64.0.359113301606.issue21793@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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__(). |
|