Remove tuple parameter unpacking in aifc to silence warnings under -3.
This commit is contained in:
parent
d250c8d666
commit
d13e4ba416
|
@ -665,7 +665,8 @@ class Aifc_write:
|
||||||
## raise Error, 'cannot change parameters after starting to write'
|
## raise Error, 'cannot change parameters after starting to write'
|
||||||
## self._version = version
|
## 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:
|
if self._nframeswritten:
|
||||||
raise Error, 'cannot change parameters after starting to write'
|
raise Error, 'cannot change parameters after starting to write'
|
||||||
if comptype not in ('NONE', 'ULAW', 'ALAW', 'G722'):
|
if comptype not in ('NONE', 'ULAW', 'ALAW', 'G722'):
|
||||||
|
|
Loading…
Reference in New Issue