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