Show More
@@ -102,7 +102,11 b' def rollback(opener, file):' | |||||
102 | if o: |
|
102 | if o: | |
103 | opener(f, "a").truncate(int(o)) |
|
103 | opener(f, "a").truncate(int(o)) | |
104 | else: |
|
104 | else: | |
105 | fn = opener(f).name |
|
105 | try: | |
106 | os.unlink(fn) |
|
106 | fn = opener(f).name | |
|
107 | os.unlink(fn) | |||
|
108 | except OSError, inst: | |||
|
109 | if inst.errno != errno.ENOENT: | |||
|
110 | raise | |||
107 | os.unlink(file) |
|
111 | os.unlink(file) | |
108 |
|
112 |
General Comments 0
You need to be logged in to leave comments.
Login now