From c20c2587d90b5a833711af8647e9a6b05e25abee Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 20 Mar 2018 02:18:33 +0545 Subject: [PATCH] issue #156: make Latch() repr match Pool() repr. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index feb4510b..97181e23 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -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,