[issue30012] gzip.open(filename, "rt") fails on Python 2.7.11 on win32, invalid mode rtb

Eryk Sun report at bugs.python.org
Fri Apr 7 17:51:12 EDT 2017


Eryk Sun added the comment:

You want to hack a fake text mode, which won't do new-line translation or treat ^Z (0x1a) as EOF like a normal 2.x text mode on Windows. Can't you just use io.TextIOWrapper(gzip.open(filename))? This reads Unicode.

----------

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


More information about the Python-bugs-list mailing list