Amaury Forgeot d'Arc <[email protected]> added the comment: gzip.open() only implements the "rb" mode, and returns bytes. fileinput could certainly wrap it with a io.TextIOWrapper.
Then the encoding issue arises. fileinput.FileInput should grow an "encoding" parameter instead of always relying on the default encoding. ---------- keywords: +easy nosy: +amaury.forgeotdarc versions: -Python 2.7 _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue5758> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
