]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't close the file explicitly.
authorSjoerd Mullender <sjoerd@acm.org>
Thu, 16 Dec 1993 14:02:44 +0000 (14:02 +0000)
committerSjoerd Mullender <sjoerd@acm.org>
Thu, 16 Dec 1993 14:02:44 +0000 (14:02 +0000)
Lib/sunau.py

index 1acebd03c0fab72538e71debbe37ddc747ffe6f4..2cb35a7ebdcb789d123a57aacbc332318b341a09 100644 (file)
@@ -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
 
        #