Browse Source

added __repr__ to SteamClient

pull/18/merge
Rossen Georgiev 9 years ago
parent
commit
899dd98862
  1. 5
      steam/client/__init__.py

5
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))

Loading…
Cancel
Save