diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-07 11:53:38 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-07 11:53:38 +0000 |
commit | 1d1285d82bb6b4d6b0e23ffc25b1cd76fc2cac97 (patch) | |
tree | 423b8c79b17ed7c15e9bec637a46f3aadd5a629a /Lib/aifc.py | |
parent | e9c3a191637336674a9ef33dce01e6551b3b0df0 (diff) | |
download | cpython-git-1d1285d82bb6b4d6b0e23ffc25b1cd76fc2cac97.tar.gz |
Merged revisions 72422 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72422 | benjamin.peterson | 2009-05-07 06:45:38 -0500 (Thu, 07 May 2009) | 1 line
actually close files instead of leaving it to the gc #5955
........
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r-- | Lib/aifc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py index 702a451b12..c03446fee0 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. |