This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Eric.Busboom
Recipients Eric.Busboom
Date 2012-11-04.22:53:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352069602.97.0.56883989346.issue16408@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-11-04 22:53:23Eric.Busboomsetrecipients: + Eric.Busboom
2012-11-04 22:53:22Eric.Busboomsetmessageid: <1352069602.97.0.56883989346.issue16408@psf.upfronthosting.co.za>
2012-11-04 22:53:22Eric.Busboomlinkissue16408 messages
2012-11-04 22:53:22Eric.Busboomcreate