From: Guido van Rossum Date: Mon, 3 May 1999 18:02:44 +0000 (+0000) Subject: The _comp_data() function never worked, it contained a reference to X-Git-Tag: v1.6a1~1389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c071fab8fac370b1e5bf8dccb2d99d0fad7f2df;p=thirdparty%2FPython%2Fcpython.git The _comp_data() function never worked, it contained a reference to undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint) --- diff --git a/Lib/aifc.py b/Lib/aifc.py index cd414c0618c2..c317c5f14579 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