[Python-checkins] CVS: python/dist/src/Lib zipfile.py,1.12,1.13
Guido van Rossum
gvanrossum@users.sourceforge.net
Sat, 14 Apr 2001 09:45:16 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1503
Modified Files:
zipfile.py
Log Message:
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.
Index: zipfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/zipfile.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** zipfile.py 2001/04/10 15:37:12 1.12
--- zipfile.py 2001/04/14 16:45:14 1.13
***************
*** 469,473 ****
0, 0, count, count, pos2 - pos1, pos1, 0)
self.fp.write(endrec)
! self.fp.flush()
if not self._filePassed:
self.fp.close()
--- 469,473 ----
0, 0, count, count, pos2 - pos1, pos1, 0)
self.fp.write(endrec)
! self.fp.flush()
if not self._filePassed:
self.fp.close()