summaryrefslogtreecommitdiffstats
path: root/Demo/sgi
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-05-06 17:58:18 (GMT)
committerGuido van Rossum <guido@python.org>1992-05-06 17:58:18 (GMT)
commit2c8bf9d400711c3a8505bb7e16cc45bda4afe2fd (patch)
treeab86fb3bada171ebb3189c5762afb80aab397a8b /Demo/sgi
parent9ea0fbc6de1162a90ef8028078f26c0b3f0352e0 (diff)
downloadcpython-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-xDemo/sgi/video/video.py3
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