Fix empty transaction destruction

This commit is contained in:
mpm@selenic.com 2005-05-04 09:32:39 -08:00
parent 78a55d241c
commit 89e337b327

View File

@ -26,7 +26,8 @@ class transaction:
def __del__(self):
if self.entries: self.abort()
self.close()
try: os.unlink(self.journal)
except: pass
def add(self, file, offset):
self.entries.append((file, offset))