Exclude version-key from iter and len

This commit is contained in:
Thor77 2018-01-31 20:55:23 +01:00
parent 7b3ecb039b
commit ff22ed86f2
1 changed files with 2 additions and 2 deletions

View File

@ -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'])