[Python-checkins] r72422 - python/trunk/Lib/aifc.py
benjamin.peterson
python-checkins at python.org
Thu May 7 13:45:39 CEST 2009
Author: benjamin.peterson
Date: Thu May 7 13:45:38 2009
New Revision: 72422
Log:
actually close files instead of leaving it to the gc #5955
Modified:
python/trunk/Lib/aifc.py
Modified: python/trunk/Lib/aifc.py
==============================================================================
--- python/trunk/Lib/aifc.py (original)
+++ python/trunk/Lib/aifc.py Thu May 7 13:45:38 2009
@@ -347,7 +347,7 @@
if self._decomp:
self._decomp.CloseDecompressor()
self._decomp = None
- self._file = None
+ self._file.close()
def tell(self):
return self._soundpos
@@ -734,8 +734,7 @@
self._comp = None
# Prevent ref cycles
self._convert = None
- self._file.flush()
- self._file = None
+ self._file.close()
#
# Internal methods.
More information about the Python-checkins
mailing list