Ryan Leslie <ryle...@gmail.com> added the comment: I expect this should already be fixed by the commit in http://bugs.python.org/issue6511
BadZipFile will now be raised for empty files rather than IOError, and so ZipFile._GetContents() should now also close the file. The fix was committed to trunk, but I don't see it merged into 2.6. ---------- nosy: +amaury.forgeotdarc, ryles _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7169> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com