Clients.__iter__ return keys instead of values
as desired by MutableMapping.__iter__
This commit is contained in:
parent
c9ab6f6b97
commit
2ebd445349
|
@ -60,7 +60,7 @@ class Clients(MutableMapping):
|
||||||
'''
|
'''
|
||||||
Yield all Client-objects from the collection
|
Yield all Client-objects from the collection
|
||||||
'''
|
'''
|
||||||
return iter(self.store.values())
|
return iter(self.store.keys())
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
return self.store[self.ident_map.get(key, key)]
|
return self.store[self.ident_map.get(key, key)]
|
||||||
|
|
Loading…
Reference in New Issue