[issue5758] fileinput.hook_compressed returning bytes from gz file

R. David Murray report at bugs.python.org
Tue Mar 13 16:11:24 CET 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

It also occurs to me that this fix makes the charset hook look rather odd.  We could render it redundant by passing charset to open in the non-openhook case, and mark it deprecated.

There is also a bug in the hook_encoding docs.  It says the file is opened with codecs.open, but that is not the case, regular open is used.

----------

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


More information about the Python-bugs-list mailing list