[issue21793] httplib client/server status refactor

Serhiy Storchaka report at bugs.python.org
Fri Feb 20 23:50:31 CET 2015


Serhiy Storchaka added the comment:

I would write just:

if isinstance(code, HTTPStatus):
    code = '%d' % code

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21793>
_______________________________________


More information about the Python-bugs-list mailing list