]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Changed setpf so it understands old-style packfactors
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 1 Jun 1993 12:04:08 +0000 (12:04 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 1 Jun 1993 12:04:08 +0000 (12:04 +0000)
Demo/sgi/video/VFile.py

index 2569a913c41e397e8c8fa7233213d7824106f04b..016115a702128679b57c0f406e3879bea97086da 100755 (executable)
@@ -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()