Kaydet (Commit) ad7324c7 authored tarafından Sjoerd Mullender's avatar Sjoerd Mullender

Don't close the file explicitly.

üst feaa7d29
...@@ -274,7 +274,6 @@ class Au_read: ...@@ -274,7 +274,6 @@ class Au_read:
self._soundpos = pos self._soundpos = pos
def close(self): def close(self):
self._file.close()
self._file = None self._file = None
class Au_write: class Au_write:
...@@ -397,7 +396,7 @@ class Au_write: ...@@ -397,7 +396,7 @@ class Au_write:
if self._nframeswritten != self._nframes or \ if self._nframeswritten != self._nframes or \
self._datalength != self._datawritten: self._datalength != self._datawritten:
self._patchheader() self._patchheader()
self._file.close() self._file.flush()
self._file = None self._file = None
# #
......
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