This commit is contained in:
Joel Collins 2020-09-07 16:33:01 +01:00
commit 2ce58f2aee
10 changed files with 24 additions and 232 deletions

View file

@ -47,7 +47,8 @@ class ZipObjectDescription:
def close(self):
logging.debug(self.fp.name)
self.fp.close()
os.unlink(self.fp.name)
if os.path.exists(self.fp.name):
os.unlink(self.fp.name)
assert not os.path.exists(self.fp.name)