summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-02-11 17:56:27 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-02-11 17:56:27 (GMT)
commit086ac007a350354ae933d1bcfbb115173d4f1dc1 (patch)
tree16cdb6deb1e835ef2ff7924d8ad436cc836a69b8 /Lib/aifc.py
parent9fb289d826a6defdc53afa7074e6a3e0785153e0 (diff)
downloadcpython-086ac007a350354ae933d1bcfbb115173d4f1dc1.zip
cpython-086ac007a350354ae933d1bcfbb115173d4f1dc1.tar.gz
cpython-086ac007a350354ae933d1bcfbb115173d4f1dc1.tar.bz2
SF #515004 cleanup
- remove unnecessary imports - rename dum -> dummy
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r--Lib/aifc.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index 0821cff..0b21c2b 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -178,7 +178,6 @@ def _read_string(file):
_HUGE_VAL = 1.79769313486231e+308 # See <limits.h>
def _read_float(f): # 10 bytes
- import math
expon = _read_short(f) # 2 bytes
sign = 1
if expon < 0:
@@ -746,8 +745,8 @@ class Aifc_write:
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))
+ 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)
def _lin2ulaw(self, data):
@@ -784,7 +783,6 @@ class Aifc_write:
def _init_compression(self):
if self._comptype == 'G722':
- import audioop
self._convert = self._lin2adpcm
return
try: