issue #156: make Latch() repr match Pool() repr.

pull/167/head
David Wilson 7 years ago
parent 7f4b89b7bb
commit c20c2587d9

@ -1001,7 +1001,7 @@ class Latch(object):
def __repr__(self):
rsock = getattr(_tls, 'rsock', None)
wsock = getattr(_tls, 'wsock', None)
return 'Latch(%r, size=%d, t=%r, r=%r, w=%r)' % (
return 'Latch(%#x, size=%d, t=%r, r=%r, w=%r)' % (
id(self),
len(self.queue),
threading.currentThread().name,

Loading…
Cancel
Save