Exclude version-key from iter and len
This commit is contained in:
parent
7b3ecb039b
commit
ff22ed86f2
|
@ -106,7 +106,7 @@ class Cache(MutableMapping):
|
||||||
del self.store[path]
|
del self.store[path]
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return iter(self.store.keys())
|
return iter(self.store.keys() - ['version'])
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
return len(self.store)
|
return len(self.store.keys() - ['version'])
|
||||||
|
|
Loading…
Reference in New Issue