From 899dd98862827269be255575153a5ba811b45666 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 13 Feb 2016 22:57:23 +0000 Subject: [PATCH] added __repr__ to SteamClient --- steam/client/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/steam/client/__init__.py b/steam/client/__init__.py index d744fb7..a6f826b 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -25,6 +25,11 @@ class SteamClient(EventEmitter): self.logged_on = False + def __repr__(self): + return "<%s() %s>" % (self.__class__.__name__, + 'online' if self.connected else 'offline', + ) + def emit(self, event, *args): if event is not None: logger.debug("Emit event: %s" % repr(event))