Remove tuple parameter unpacking in aifc to silence warnings under -3.

This commit is contained in:
Brett Cannon 2008-08-04 21:33:00 +00:00
parent d250c8d666
commit d13e4ba416
1 changed files with 2 additions and 1 deletions

View File

@ -665,7 +665,8 @@ class Aifc_write:
## raise Error, 'cannot change parameters after starting to write'
## self._version = version
def setparams(self, (nchannels, sampwidth, framerate, nframes, comptype, compname)):
def setparams(self, info):
nchannels, sampwidth, framerate, nframes, comptype, compname = info
if self._nframeswritten:
raise Error, 'cannot change parameters after starting to write'
if comptype not in ('NONE', 'ULAW', 'ALAW', 'G722'):