Mesa (gallium-0.1): python/retrace: Open bz2 files correctly.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Jul 27 11:52:50 UTC 2009


Module: Mesa
Branch: gallium-0.1
Commit: b03c0eb55e15dc1f541e06d3c09bdd18971c7ed8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b03c0eb55e15dc1f541e06d3c09bdd18971c7ed8

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sun May 31 12:53:22 2009 -0700

python/retrace: Open bz2 files correctly.

---

 .../state_trackers/python/retrace/parser.py        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/python/retrace/parser.py b/src/gallium/state_trackers/python/retrace/parser.py
index b0f3e8a..b08d368 100755
--- a/src/gallium/state_trackers/python/retrace/parser.py
+++ b/src/gallium/state_trackers/python/retrace/parser.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)




More information about the mesa-commit mailing list