From: Jack Jansen Date: Tue, 1 Jun 1993 12:04:08 +0000 (+0000) Subject: Changed setpf so it understands old-style packfactors X-Git-Tag: v0.9.9~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1;p=thirdparty%2FPython%2Fcpython.git Changed setpf so it understands old-style packfactors --- diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py index 2569a913c41e..016115a70212 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()