Kaydet (Commit) d13e4ba4 authored tarafından Brett Cannon's avatar Brett Cannon

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

üst d250c8d6
......@@ -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'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment