From: José Fonseca Date: Sun, 31 May 2009 19:53:22 +0000 (-0700) Subject: python/retrace: Open bz2 files correctly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cdf56eb68d2718b5702f3d09928da404d745b8e1;p=mesa.git python/retrace: Open bz2 files correctly. --- diff --git a/src/gallium/state_trackers/python/retrace/parse.py b/src/gallium/state_trackers/python/retrace/parse.py index b0f3e8a432f..b08d3686715 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)