equal
deleted
inserted
replaced
63 print "failed to truncate", f |
63 print "failed to truncate", f |
64 |
64 |
65 self.entries = [] |
65 self.entries = [] |
66 |
66 |
67 print "rollback completed" |
67 print "rollback completed" |
68 |
68 |
69 def rollback(opener, file): |
69 def rollback(opener, file): |
70 for l in open(file).readlines(): |
70 for l in open(file).readlines(): |
71 f, o = l.split('\0') |
71 f, o = l.split('\0') |
72 opener(f, "a").truncate(int(o)) |
72 opener(f, "a").truncate(int(o)) |
73 os.unlink(file) |
73 os.unlink(file) |