[issue5758] fileinput.hook_compressed returning bytes from gz file

Éric Araujo report at bugs.python.org
Tue Mar 13 01:40:43 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

We can use locale.getpreferredencoding, or be smarter and just pass down encoding=encoding to TextIOWrapper and let *it* call getpreferredencoding if it’s given a None :)

----------

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


More information about the Python-bugs-list mailing list