From: José Fonseca Date: Wed, 2 Sep 2009 07:12:33 +0000 (+0100) Subject: Fix gzip file mode. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=16dfadb3c55ab6ff7a36f905e6e6d4faa75d9e16;p=apitrace Fix gzip file mode. --- 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')