From d13e4ba4160dddad18380bdb2ae9aec6c6f43e00 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 4 Aug 2008 21:33:00 +0000 Subject: [PATCH] Remove tuple parameter unpacking in aifc to silence warnings under -3. --- Lib/aifc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/aifc.py b/Lib/aifc.py index a5f86be455b..f663dd67d2e 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'):