From 14e9d035872ec05f651bd22c7a49c03a9b466bf0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 7 Mar 2011 15:53:52 +0100 Subject: [PATCH 1/1] fix for files with dots in name --- lib/vstorage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vstorage/__init__.py b/lib/vstorage/__init__.py index a98f8de3..2708ed79 100644 --- a/lib/vstorage/__init__.py +++ b/lib/vstorage/__init__.py @@ -162,7 +162,7 @@ class VersionedStorage(object): def _file_to_title(self, filename): assert filename.startswith(self.repo_prefix) - name = filename[len(self.repo_prefix):].strip('/').split('.', 1)[0] + name = filename[len(self.repo_prefix):].strip('/').rsplit('.', 1)[0] return urlunquote(name) def __contains__(self, title): -- 2.20.1