[Python-checkins] r46458 - python/trunk/Lib/test/test_tarfile.py
A.M. Kuchling
amk at amk.ca
Sat May 27 15:49:13 CEST 2006
On Sat, May 27, 2006 at 02:36:53PM +0200, tim.peters wrote:
> More random thrashing trying to understand spurious
> Windows failures. Who's keeping a bz2 file open?
In tarfile.py, the BZ2Proxy class has this method:
def close(self):
if self.mode == "w":
raw = self.bz2obj.flush()
self.fileobj.write(raw)
self.fileobj.close()
So it'll only close if the mode is write; perhaps the .close() call
should be moved outside of the 'if'.
--amk
More information about the Python-checkins
mailing list