diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1993-06-01 12:04:08 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1993-06-01 12:04:08 +0000 |
commit | f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1 (patch) | |
tree | 2ec252682bfc737d2a1dfca0ce1290c85f447c6a /Demo/sgi | |
parent | 18c9a4f8ea85f95ba5623fc2c090bc11bae675d9 (diff) | |
download | cpython-git-f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1.tar.gz |
Changed setpf so it understands old-style packfactors
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-x | Demo/sgi/video/VFile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py index 2569a913c4..016115a702 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() |