Mesa (mesa_7_5_branch): python/retrace: Open bz2 files correctly.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Aug 14 19:06:01 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: cdf56eb68d2718b5702f3d09928da404d745b8e1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdf56eb68d2718b5702f3d09928da404d745b8e1

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

python/retrace: Open bz2 files correctly.

---

 src/gallium/state_trackers/python/retrace/parse.py |    2 +-
 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 b0f3e8a..b08d368 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)




More information about the mesa-commit mailing list