homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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__().
History
Date User Action Args
2015年02月20日 22:39:19martin.pantersetrecipients: + martin.panter, barry, rhettinger, orsenthil, r.david.murray, ethan.furman, python-dev, berker.peksag, serhiy.storchaka, demian.brecht
2015年02月20日 22:39:19martin.pantersetmessageid: <1424471959.64.0.359113301606.issue21793@psf.upfronthosting.co.za>
2015年02月20日 22:39:19martin.panterlinkissue21793 messages
2015年02月20日 22:39:19martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /