From 20d40c8890496b0db4a820178d0cb5123dc56981 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 23 Jul 2017 17:31:11 +0200 Subject: [PATCH] Add string-representation for Clients to simplify debug-output --- tsstats/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tsstats/client.py b/tsstats/client.py index a933d53..1e624a1 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -52,6 +52,9 @@ class Clients(MutableMapping): def __setitem__(self, key, value): self.store[self.ident_map.get(key, key)] = value + def __str__(self): + return str(list(map(str, self))) + class Client(object): '''