]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The _comp_data() function never worked, it contained a reference to
authorGuido van Rossum <guido@python.org>
Mon, 3 May 1999 18:02:44 +0000 (18:02 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 May 1999 18:02:44 +0000 (18:02 +0000)
undefined 'nframes'.  Should be self._nframes.  (Andrew Dalke & kjpylint)

Lib/aifc.py

index cd414c0618c2bc870d851da444d29f087bb596cd..c317c5f14579f6820e738ff0302830f0450f4c65 100644 (file)
@@ -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