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 peter@psantoro.net
Recipients peter@psantoro.net
Date 2014-01-01.11:21:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388575277.51.0.394331001558.issue20102@psf.upfronthosting.co.za>
In-reply-to
Content
Now that zipfile.ZipFile supports the context manager protocol, shouldn't
shutil._make_zipfile make use of it to avoid the possibility of the archive file not being closed properly if an exception occurs?  It should be noted that shutil._unpack_zipfile does use try/finally to ensure that files are closed.
History
Date User Action Args
2014-01-01 11:21:17peter@psantoro.netsetrecipients: + peter@psantoro.net
2014-01-01 11:21:17peter@psantoro.netsetmessageid: <1388575277.51.0.394331001558.issue20102@psf.upfronthosting.co.za>
2014-01-01 11:21:17peter@psantoro.netlinkissue20102 messages
2014-01-01 11:21:16peter@psantoro.netcreate