[issue26045] Improve error message for http.client when posting unicode string

Guido van Rossum report at bugs.python.org
Fri Jan 8 11:43:24 EST 2016


Guido van Rossum added the comment:

Here's a patch. I noticed there are lots of other places where a similar encoding() call exists -- I wrapped them all using a helper function. Please review carefully.

----------
keywords: +patch
Added file: http://bugs.python.org/file41537/utfpatch.diff

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


More information about the Python-bugs-list mailing list