From 5c071fab8fac370b1e5bf8dccb2d99d0fad7f2df Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 3 May 1999 18:02:44 +0000 Subject: The _comp_data() function never worked, it contained a reference to undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint) --- Lib/aifc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12