mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Hopefully this commit fixes etags in filesystem storage
This commit is contained in:
parent
9b78360515
commit
a93a06abb2
1 changed files with 1 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ class safe_write(object):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __exit__(self, type, value, tb):
|
def __exit__(self, type, value, tb):
|
||||||
|
self.f.close()
|
||||||
if type is None:
|
if type is None:
|
||||||
os.rename(self.tmppath, self.fpath)
|
os.rename(self.tmppath, self.fpath)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue