summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-04 21:33:00 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-04 21:33:00 (GMT)
commitd13e4ba4160dddad18380bdb2ae9aec6c6f43e00 (patch)
treea7e0d14dbc46fe2ab7829c78934fd922638c097c /Lib/aifc.py
parentd250c8d666a53c14aee59e4c5e454a2fbb514ae5 (diff)
downloadcpython-d13e4ba4160dddad18380bdb2ae9aec6c6f43e00.zip
cpython-d13e4ba4160dddad18380bdb2ae9aec6c6f43e00.tar.gz
cpython-d13e4ba4160dddad18380bdb2ae9aec6c6f43e00.tar.bz2
Remove tuple parameter unpacking in aifc to silence warnings under -3.
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r--Lib/aifc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index a5f86be..f663dd6 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'):