summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-05-31 12:53:22 -0700
committerJosé Fonseca <jfonseca@vmware.com>2009-08-14 20:05:51 +0100
commitcdf56eb68d2718b5702f3d09928da404d745b8e1 (patch)
treeb528802a1b9b64df8f882e6ccec42dc6fcfaaab5
parent1574b05189fee1b5802024b505ba93fff345e95c (diff)
python/retrace: Open bz2 files correctly.
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/python/retrace/parse.py b/src/gallium/state_trackers/python/retrace/parse.py
index b0f3e8a432..b08d368671 100755
--- a/src/gallium/state_trackers/python/retrace/parse.py
+++ b/src/gallium/state_trackers/python/retrace/parse.py
@@ -371,7 +371,7 @@ class Main:
stream = GzipFile(arg, 'rt')
elif arg.endswith('.bz2'):
from bz2 import BZ2File
- stream = BZ2File(arg, 'rt')
+ stream = BZ2File(arg, 'rU')
else:
stream = open(arg, 'rt')
self.process_arg(stream, options)