From: Sjoerd Mullender Date: Thu, 16 Dec 1993 14:02:44 +0000 (+0000) Subject: Don't close the file explicitly. X-Git-Tag: v1.0.1~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad7324c71fbbb60eb34f7d6fe6b5c3663d114304;p=thirdparty%2FPython%2Fcpython.git Don't close the file explicitly. --- diff --git a/Lib/sunau.py b/Lib/sunau.py index 1acebd03c0fa..2cb35a7ebdcb 100644 --- a/Lib/sunau.py +++ b/Lib/sunau.py @@ -274,7 +274,6 @@ class Au_read: self._soundpos = pos def close(self): - self._file.close() self._file = None class Au_write: @@ -397,7 +396,7 @@ class Au_write: if self._nframeswritten != self._nframes or \ self._datalength != self._datawritten: self._patchheader() - self._file.close() + self._file.flush() self._file = None #