summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/aifc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index 702a451..c03446f 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -331,7 +331,7 @@ class Aifc_read:
self._soundpos = 0
def close(self):
- self._file = None
+ self._file.close()
def tell(self):
return self._soundpos
@@ -692,8 +692,7 @@ class Aifc_write:
self._patchheader()
# Prevent ref cycles
self._convert = None
- self._file.flush()
- self._file = None
+ self._file.close()
#
# Internal methods.