From 2ebd445349b4714e5176b6ca2c6f0c49dc9eca95 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 25 Sep 2017 23:14:26 +0200 Subject: [PATCH] Clients.__iter__ return keys instead of values as desired by MutableMapping.__iter__ --- tsstats/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/client.py b/tsstats/client.py index a00e1c3..32661d9 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -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)]