Author eino
Recipients eino
Date 2008-10-30.11:52:01
SpamBayes Score 0.00044409
Marked as misclassified No
Message-id <1225367525.69.0.93727529387.issue4241@psf.upfronthosting.co.za>
In-reply-to
Content
Very simple error.
If is_zipfile crashes when checking is_zipfile if zipfile is corrupted
or not at all zip. It leaves file open and prevents later to remove file
etc... Maybe it's corrected in next versions

Old code: zipfile...
  line 86:  endrec = _EndRecData(fpin)
  line 87:  fpin.close


My simple corrections to cope with this
        try:
            endrec = _EndRecData(fpin)
        finally:
            fpin.close()
History
Date User Action Args
2008-10-30 11:52:05einosetrecipients: + eino
2008-10-30 11:52:05einosetmessageid: <1225367525.69.0.93727529387.issue4241@psf.upfronthosting.co.za>
2008-10-30 11:52:02einolinkissue4241 messages
2008-10-30 11:52:01einocreate