Clients.__iter__ return keys instead of values

as desired by MutableMapping.__iter__
This commit is contained in:
Thor77 2017-09-25 23:14:26 +02:00
parent c9ab6f6b97
commit 2ebd445349
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Clients(MutableMapping):
'''
Yield all Client-objects from the collection
'''
return iter(self.store.values())
return iter(self.store.keys())
def __getitem__(self, key):
return self.store[self.ident_map.get(key, key)]