]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove tuple parameter unpacking in aifc to silence warnings under -3.
authorBrett Cannon <bcannon@gmail.com>
Mon, 4 Aug 2008 21:33:00 +0000 (21:33 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 4 Aug 2008 21:33:00 +0000 (21:33 +0000)
Lib/aifc.py

index a5f86be455b5ffa302384bd1efceae3ef7de67dc..f663dd67d2e7a1f149ab99753097757aff50dc93 100644 (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'):