summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1993-12-16 13:56:34 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1993-12-16 13:56:34 (GMT)
commitfeaa7d296f8da448b018588187224b602aafcbac (patch)
tree7a621a37054d9c5cbdf701edc91872dad9ba53e0 /Lib/aifc.py
parent79c85f1778c31ebdae09d2e2802e15e7d4f237b9 (diff)
downloadcpython-feaa7d296f8da448b018588187224b602aafcbac.zip
cpython-feaa7d296f8da448b018588187224b602aafcbac.tar.gz
cpython-feaa7d296f8da448b018588187224b602aafcbac.tar.bz2
Don't close the file.
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r--Lib/aifc.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index ee1f8f0..f833e92 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -153,12 +153,12 @@ _skiplist = 'COMT', 'INST', 'MIDI', 'AESD', \
_nchannelslist = [(1, AL.MONO), (2, AL.STEREO)]
_sampwidthlist = [(8, AL.SAMPLE_8), (16, AL.SAMPLE_16), (24, AL.SAMPLE_24)]
-_frameratelist = [(48000, AL.RATE_48000), \
- (44100, AL.RATE_44100), \
- (32000, AL.RATE_32000), \
- (22050, AL.RATE_22050), \
- (16000, AL.RATE_16000), \
- (11025, AL.RATE_11025), \
+_frameratelist = [(48000, AL.RATE_48000),
+ (44100, AL.RATE_44100),
+ (32000, AL.RATE_32000),
+ (22050, AL.RATE_22050),
+ (16000, AL.RATE_16000),
+ (11025, AL.RATE_11025),
( 8000, AL.RATE_8000)]
def _convert1(value, list):
@@ -456,7 +456,6 @@ class Aifc_read:
if self._decomp:
self._decomp.CloseDecompressor()
self._decomp = None
- self._file.close()
self._file = None
def tell(self):
@@ -816,7 +815,7 @@ class Aifc_write:
if self._comp:
self._comp.CloseCompressor()
self._comp = None
- self._file.close()
+ self._file.flush()
self._file = None
#