]> git.cworth.org Git - apitrace/commitdiff
Fix gzip file mode.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 2 Sep 2009 07:12:33 +0000 (08:12 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 2 Sep 2009 07:12:33 +0000 (08:12 +0100)
xml2txt.py

index 35eb9b7525cc6139a016ea2f15007b7171451c9b..2edd1833ff75eb1d8a5bfc7fb2890e3ac52f973c 100755 (executable)
@@ -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')