mirror of
https://github.com/python/cpython
synced 2024-09-18 20:11:41 +00:00
Don't close the file explicitly.
This commit is contained in:
parent
feaa7d296f
commit
ad7324c71f
|
@ -274,7 +274,6 @@ def setpos(self, pos):
|
|||
self._soundpos = pos
|
||||
|
||||
def close(self):
|
||||
self._file.close()
|
||||
self._file = None
|
||||
|
||||
class Au_write:
|
||||
|
@ -397,7 +396,7 @@ def close(self):
|
|||
if self._nframeswritten != self._nframes or \
|
||||
self._datalength != self._datawritten:
|
||||
self._patchheader()
|
||||
self._file.close()
|
||||
self._file.flush()
|
||||
self._file = None
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue