Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 086ac00

Browse files
committed
SF #515004 cleanup
- remove unnecessary imports - rename dum -> dummy
1 parent 9fb289d commit 086ac00

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/aifc.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ def _read_string(file):
178178
_HUGE_VAL = 1.79769313486231e+308 # See <limits.h>
179179

180180
def _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:

0 commit comments

Comments
 (0)