Skip to content

Commit

Permalink
Hopefully this commit fixes etags in filesystem storage
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Apr 10, 2014
1 parent 9b78360 commit 62d726d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vdirsyncer/storage/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __enter__(self):
return self

def __exit__(self, type, value, tb):
self.f.close()
if type is None:
os.rename(self.tmppath, self.fpath)
else:
Expand Down Expand Up @@ -94,7 +95,8 @@ def _get_filepath(self, href):
return os.path.join(self.path, href)

def _get_href(self, uid):
return uid + self.fileext
assert isinstance(uid, unicode)
return uid.encode() + self.fileext

def list(self):
for fname in os.listdir(self.path):
Expand Down

0 comments on commit 62d726d

Please sign in to comment.