summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1993-12-16 14:02:44 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1993-12-16 14:02:44 (GMT)
commitad7324c71fbbb60eb34f7d6fe6b5c3663d114304 (patch)
tree05b3d856877212cb61751bededc001322d307c4f
parentfeaa7d296f8da448b018588187224b602aafcbac (diff)
downloadcpython-ad7324c71fbbb60eb34f7d6fe6b5c3663d114304.zip
cpython-ad7324c71fbbb60eb34f7d6fe6b5c3663d114304.tar.gz
cpython-ad7324c71fbbb60eb34f7d6fe6b5c3663d114304.tar.bz2
Don't close the file explicitly.
-rw-r--r--Lib/sunau.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/sunau.py b/Lib/sunau.py
index 1acebd0..2cb35a7 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
#