From 16dfadb3c55ab6ff7a36f905e6e6d4faa75d9e16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 2 Sep 2009 08:12:33 +0100 Subject: [PATCH] Fix gzip file mode. --- xml2txt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml2txt.py b/xml2txt.py index 35eb9b7..2edd183 100755 --- a/xml2txt.py +++ b/xml2txt.py @@ -402,7 +402,7 @@ def main(): if args: for arg in args: if arg.endswith('.gz'): - stream = GzipFile(arg, 'rt') + stream = GzipFile(arg, 'rb') elif arg.endswith('.bz2'): from bz2 import BZ2File stream = BZ2File(arg, 'rt') -- 2.45.2