From 3ed70e460bfde9667995b2e15ef14b8e25e6db15 Mon Sep 17 00:00:00 2001 From: zuber Date: Fri, 8 Jan 2010 18:19:40 +0100 Subject: [PATCH] =?utf8?q?Przyspieszenie=20dzia=C5=82ania=20operatora=20in?= =?utf8?q?=20na=20vstorage.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/vstorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vstorage.py b/lib/vstorage.py index ea8d5229..d67e2c10 100644 --- a/lib/vstorage.py +++ b/lib/vstorage.py @@ -144,7 +144,7 @@ class VersionedStorage(object): return urlunquote(name) def __contains__(self, title): - return title in self.all_pages() + return urlquote(title) in self.repo.dirstate def __iter__(self): return self.all_pages() -- 2.20.1