The _comp_data() function never worked, it contained a reference to

undefined 'nframes'.  Should be self._nframes.  (Andrew Dalke & kjpylint)
This commit is contained in:
Guido van Rossum 1999-05-03 18:02:44 +00:00
parent f8fd11d039
commit 5c071fab8f
1 changed files with 1 additions and 1 deletions

View File

@ -811,7 +811,7 @@ class Aifc_write:
import cl import cl
dum = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data)) dum = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data))
dum = self._comp.SetParam(cl.COMPRESSED_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): def _lin2ulaw(self, data):
import audioop import audioop