core: better Poller.__repr__

This commit is contained in:
David Wilson 2018-05-24 23:30:56 +01:00
parent b0ce6eecd7
commit 7a592d1c34
1 changed files with 1 additions and 3 deletions

View File

@ -1024,8 +1024,6 @@ class Poller(object):
self._rfds = {}
self._wfds = {}
_repr = 'Poller()'
@property
def readers(self):
return list(self._rfds.items())
@ -1035,7 +1033,7 @@ class Poller(object):
return list(self._wfds.items())
def __repr__(self):
return self._repr
return '%s(%#x)' % (type(self).__name__, id(self))
def close(self):
pass