Demian Brecht added the comment: > On Feb 20, 2015, at 2:50 PM, Serhiy Storchaka <rep...@bugs.python.org> wrote: > > if isinstance(code, HTTPStatus): > code = '%d' % code
That’s what I’m intending on doing. It’s definitely not as contained as changing the __str__ implementation of HTTPStatus. That said, I understand the reasoning behind not doing so and this path is the next clearest. ---------- _______________________________________ 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