summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1993-06-01 12:04:08 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1993-06-01 12:04:08 (GMT)
commitf3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1 (patch)
tree2ec252682bfc737d2a1dfca0ce1290c85f447c6a
parent18c9a4f8ea85f95ba5623fc2c090bc11bae675d9 (diff)
downloadcpython-f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1.zip
cpython-f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1.tar.gz
cpython-f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1.tar.bz2
Changed setpf so it understands old-style packfactors
-rwxr-xr-xDemo/sgi/video/VFile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index 2569a91..016115a 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -272,6 +272,8 @@ class VideoParams:
def setpf(self, pf):
if self.frozen: raise CallError
+ if type(pf) == type(1):
+ pf = (pf, pf)
if type(pf) is not type(()) or len(pf) <> 2: raise CallError
self.packfactor = pf
self.setderived()