Commit a5b7363c authored by Denis Bilenko's avatar Denis Bilenko

Event: add _links[# of links] to __str__

parent bc744f0a
......@@ -27,7 +27,7 @@ class Event(object):
self._notifier = self.hub.loop.callback()
def __str__(self):
return '<%s %s>' % (self.__class__.__name__, (self._flag and 'set') or 'clear')
return '<%s %s _links[%s]>' % (self.__class__.__name__, (self._flag and 'set') or 'clear', len(self._links))
def is_set(self):
"""Return true if and only if the internal flag is true."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment