Don't close the file explicitly.
This commit is contained in:
parent
feaa7d296f
commit
ad7324c71f
@ -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:
|
|||||||
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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user