File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ def _read_string(file):
178178_HUGE_VAL = 1.79769313486231e+308 # See <limits.h>
179179
180180def _read_float (f ): # 10 bytes
181- import math
182181 expon = _read_short (f ) # 2 bytes
183182 sign = 1
184183 if expon < 0 :
@@ -746,8 +745,8 @@ def close(self):
746745
747746 def _comp_data (self , data ):
748747 import cl
749- dum = self ._comp .SetParam (cl .FRAME_BUFFER_SIZE , len (data ))
750- dum = self ._comp .SetParam (cl .COMPRESSED_BUFFER_SIZE , len (data ))
748+ dummy = self ._comp .SetParam (cl .FRAME_BUFFER_SIZE , len (data ))
749+ dummy = self ._comp .SetParam (cl .COMPRESSED_BUFFER_SIZE , len (data ))
751750 return self ._comp .Compress (self ._nframes , data )
752751
753752 def _lin2ulaw (self , data ):
@@ -784,7 +783,6 @@ def _ensure_header_written(self, datasize):
784783
785784 def _init_compression (self ):
786785 if self ._comptype == 'G722' :
787- import audioop
788786 self ._convert = self ._lin2adpcm
789787 return
790788 try :
You can’t perform that action at this time.
0 commit comments