[Python-checkins] CVS: python/dist/src/Lib aifc.py,1.40,1.41

Neal Norwitz nnorwitz@users.sourceforge.net
Mon, 11 Feb 2002 09:56:29 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv4155

Modified Files:
	aifc.py 
Log Message:
SF #515004 cleanup
  - remove unnecessary imports
  - rename dum -> dummy


Index: aifc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/aifc.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** aifc.py	20 Jan 2001 19:54:20 -0000	1.40
--- aifc.py	11 Feb 2002 17:56:27 -0000	1.41
***************
*** 179,183 ****
  
  def _read_float(f): # 10 bytes
-     import math
      expon = _read_short(f) # 2 bytes
      sign = 1
--- 179,182 ----
***************
*** 747,752 ****
      def _comp_data(self, data):
          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(self._nframes, data)
  
--- 746,751 ----
      def _comp_data(self, data):
          import cl
!         dummy = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data))
!         dummy = self._comp.SetParam(cl.COMPRESSED_BUFFER_SIZE, len(data))
          return self._comp.Compress(self._nframes, data)
  
***************
*** 785,789 ****
      def _init_compression(self):
          if self._comptype == 'G722':
-             import audioop
              self._convert = self._lin2adpcm
              return
--- 784,787 ----