Message174837
I've tried just closing the ZipExtFile created in testzip, but that didn't actually close the file. It looks like ZipExtClose.close() also doesn't close the file descriptor, at least when the ZipFile is constructed on a filename.
This code worked (Addition of f._fileobj.close() )
f = zf.open(zinfo.filename, "r")
while f.read( 2 ** 20): # Check CRC-32
pass
f.close()
f._fileobj.close() # This shoulnd't be necessary, but it is. |
|
Date |
User |
Action |
Args |
2012-11-04 22:53:23 | Eric.Busboom | set | recipients:
+ Eric.Busboom |
2012-11-04 22:53:22 | Eric.Busboom | set | messageid: <1352069602.97.0.56883989346.issue16408@psf.upfronthosting.co.za> |
2012-11-04 22:53:22 | Eric.Busboom | link | issue16408 messages |
2012-11-04 22:53:22 | Eric.Busboom | create | |
|