]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Mark Favas points out that there's an 'self.fp.flush()' call in the
authorGuido van Rossum <guido@python.org>
Sat, 14 Apr 2001 16:45:14 +0000 (16:45 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 14 Apr 2001 16:45:14 +0000 (16:45 +0000)
commitf85af612f8c109f52333ee2d106b0848bf6ab372
treefa96e9216d757879841b2fdc7d624f2caf916ffe
parent3024bb6e25c25b16c38db7af028f08f796b0cd3a
Mark Favas points out that there's an 'self.fp.flush()' call in the
ZipFile.close() method that should be part of the preceding 'if'
block.  On some platforms (Mark noticed this on FreeBSD 4.2) doing a
flush() on a file open for reading is not allowed.
Lib/zipfile.py