From a93a06abb259982184c31b26b7f7773bc17266d2 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 10 Apr 2014 12:42:13 +0200 Subject: [PATCH] Hopefully this commit fixes etags in filesystem storage --- vdirsyncer/storage/filesystem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vdirsyncer/storage/filesystem.py b/vdirsyncer/storage/filesystem.py index 2b56ce1..bac7fda 100644 --- a/vdirsyncer/storage/filesystem.py +++ b/vdirsyncer/storage/filesystem.py @@ -36,6 +36,7 @@ class safe_write(object): return self def __exit__(self, type, value, tb): + self.f.close() if type is None: os.rename(self.tmppath, self.fpath) else: