From ff22ed86f259a2e966f8bbddd1c520f12af362d6 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 31 Jan 2018 20:55:23 +0100 Subject: [PATCH] Exclude version-key from iter and len --- tsstats/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/cache.py b/tsstats/cache.py index f47f443..4c244df 100644 --- a/tsstats/cache.py +++ b/tsstats/cache.py @@ -106,7 +106,7 @@ class Cache(MutableMapping): del self.store[path] def __iter__(self): - return iter(self.store.keys()) + return iter(self.store.keys() - ['version']) def __len__(self): - return len(self.store) + return len(self.store.keys() - ['version'])