[Python-checkins] python/dist/src/Lib tarfile.py,1.17,1.18

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Aug 22 23:28:35 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6079/Lib
Modified Files:
	tarfile.py 
Log Message:
Flush bz2 data even if nothing had been written so far. Fixes #1013882.
Will backport to 2.3.
Index: tarfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- tarfile.py	20 Aug 2004 06:35:46 -0000	1.17
+++ tarfile.py	22 Aug 2004 21:28:32 -0000	1.18
@@ -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

AltStyle によって変換されたページ (->オリジナル) /