core: clean up no longer useful Latch.__repr__

Those fields are always None since the recent fork cleanup work.
pull/178/head
David Wilson 7 years ago
parent d4bc44468b
commit 5b87d10ae6

@ -1019,14 +1019,10 @@ class Latch(object):
raise raise
def __repr__(self): def __repr__(self):
rsock = getattr(_tls, 'rsock', None) return 'Latch(%#x, size=%d, t=%r)' % (
wsock = getattr(_tls, 'wsock', None)
return 'Latch(%#x, size=%d, t=%r, r=%r, w=%r)' % (
id(self), id(self),
len(self._queue), len(self._queue),
threading.currentThread().name, threading.currentThread().name,
rsock and rsock.fileno(),
wsock and wsock.fileno(),
) )

Loading…
Cancel
Save