Commit 1d1285d8 authored by Benjamin Peterson's avatar Benjamin Peterson

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
........
parent e9c3a191
...@@ -331,7 +331,7 @@ class Aifc_read: ...@@ -331,7 +331,7 @@ class Aifc_read:
self._soundpos = 0 self._soundpos = 0
def close(self): def close(self):
self._file = None self._file.close()
def tell(self): def tell(self):
return self._soundpos return self._soundpos
...@@ -692,8 +692,7 @@ class Aifc_write: ...@@ -692,8 +692,7 @@ class Aifc_write:
self._patchheader() self._patchheader()
# Prevent ref cycles # Prevent ref cycles
self._convert = None self._convert = None
self._file.flush() self._file.close()
self._file = None
# #
# Internal methods. # Internal methods.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment