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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to