[Python-checkins] python/dist/src/Lib tarfile.py,1.8.12.2,1.8.12.3
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sun Aug 22 23:30:06 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6596/Lib
Modified Files:
Tag: release23-maint
tarfile.py
Log Message:
Flush bz2 data even if nothing had been written so far. Fixes #1013882
Index: tarfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v
retrieving revision 1.8.12.2
retrieving revision 1.8.12.3
diff -u -d -r1.8.12.2 -r1.8.12.3
--- tarfile.py 6 Nov 2003 13:57:49 -0000 1.8.12.2
+++ tarfile.py 22 Aug 2004 21:30:03 -0000 1.8.12.3
@@ -350,9 +350,9 @@
if self.closed:
return
+ if self.mode == "w" and self.type != "tar":
+ self.buf += self.cmp.flush()
if self.mode == "w" and self.buf:
- if self.type != "tar":
- self.buf += self.cmp.flush()
self.fileobj.write(self.buf)
self.buf = ""
if self.type == "gz":
More information about the Python-checkins
mailing list