Changed setpf so it understands old-style packfactors

This commit is contained in:
Jack Jansen 1993-06-01 12:04:08 +00:00
parent 18c9a4f8ea
commit f3f753132a
1 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,8 @@ def getformat(self):
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()