diff options
author | Guido van Rossum <guido@python.org> | 1992-05-06 17:58:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-05-06 17:58:18 (GMT) |
commit | 2c8bf9d400711c3a8505bb7e16cc45bda4afe2fd (patch) | |
tree | ab86fb3bada171ebb3189c5762afb80aab397a8b /Demo/sgi | |
parent | 9ea0fbc6de1162a90ef8028078f26c0b3f0352e0 (diff) | |
download | cpython-2c8bf9d400711c3a8505bb7e16cc45bda4afe2fd.zip cpython-2c8bf9d400711c3a8505bb7e16cc45bda4afe2fd.tar.gz cpython-2c8bf9d400711c3a8505bb7e16cc45bda4afe2fd.tar.bz2 |
Define colorinfo even if no header line found
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-x | Demo/sgi/video/video.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Demo/sgi/video/video.py b/Demo/sgi/video/video.py index cf994a3..2b50e39 100755 --- a/Demo/sgi/video/video.py +++ b/Demo/sgi/video/video.py @@ -31,12 +31,11 @@ def openvideo(name): sys.exit(1) line = f.readline() if not line: raise EndOfFile + colorinfo = (8, 0, 0, 0) if line[:4] == 'CMIF': if line[:14] == 'CMIF video 2.0': line = f.readline() colorinfo = eval(line[:-1]) - else: - colorinfo = (8,0,0,0) line = f.readline() x = eval(line[:-1]) if len(x) == 3: w, h, pf = x |