[Python-checkins] python/dist/src/Lib tarfile.py,1.9,1.10

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Fri Jan 2 10:44:32 EST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv26203
Modified Files:
	tarfile.py 
Log Message:
[Bug #812325 ] tarfile.close() can write out more bytes to the output
 than are specified by the buffer size. The patch calls .__write()
 to ensure that any full blocks are written out.
Index: tarfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tarfile.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** tarfile.py	24 Oct 2003 17:38:34 -0000	1.9
--- tarfile.py	2 Jan 2004 15:44:29 -0000	1.10
***************
*** 354,357 ****
--- 354,358 ----
 if self.type != "tar":
 self.buf += self.cmp.flush()
+ self.__write("") # Write remaining blocks to output
 self.fileobj.write(self.buf)
 self.buf = ""


More information about the Python-checkins mailing list

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