[issue8765] Tests unwillingly writing unicocde to raw streams

Amaury Forgeot d'Arc report at bugs.python.org
Tue May 25 13:27:46 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The 3.1 version does it correctly since issue7785, but this was not backported to 2.x.
Python 3.x uses the "y*" format code to accept bytes and not unicode; this code does not exist in 2.x, and was replaced with "s*", which accepts unicode.
But since the io module is designed up front to forbid default conversion between bytes and unicode, I think it's safe to change the code as suggested.

----------

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


More information about the Python-bugs-list mailing list