From: Brett Cannon Date: Mon, 4 Aug 2008 21:33:00 +0000 (+0000) Subject: Remove tuple parameter unpacking in aifc to silence warnings under -3. X-Git-Tag: v2.6b3~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d13e4ba4160dddad18380bdb2ae9aec6c6f43e00;p=thirdparty%2FPython%2Fcpython.git Remove tuple parameter unpacking in aifc to silence warnings under -3. --- diff --git a/Lib/aifc.py b/Lib/aifc.py index a5f86be455b5..f663dd67d2e7 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -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'):