mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Remove tuple parameter unpacking in aifc to silence warnings under -3.
This commit is contained in:
parent
d250c8d666
commit
d13e4ba416
1 changed files with 2 additions and 1 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue