summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-05-03 18:02:44 (GMT)
committerGuido van Rossum <guido@python.org>1999-05-03 18:02:44 (GMT)
commit5c071fab8fac370b1e5bf8dccb2d99d0fad7f2df (patch)
tree87dac347ee0eaeaa1528bfc36810efbdda689567
parentf8fd11d039758b5d0c91316204be268eb511757b (diff)
downloadcpython-5c071fab8fac370b1e5bf8dccb2d99d0fad7f2df.zip
cpython-5c071fab8fac370b1e5bf8dccb2d99d0fad7f2df.tar.gz
cpython-5c071fab8fac370b1e5bf8dccb2d99d0fad7f2df.tar.bz2
The _comp_data() function never worked, it contained a reference to
undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
-rw-r--r--Lib/aifc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index cd414c0..c317c5f 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -811,7 +811,7 @@ class Aifc_write:
import cl
dum = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data))
dum = self._comp.SetParam(cl.COMPRESSED_BUFFER_SIZE, len(data))
- return self._comp.Compress(nframes, data)
+ return self._comp.Compress(self._nframes, data)
def _lin2ulaw(self, data):
import audioop