From 5b87d10ae637c07cb1e84ce6d8b73b9e04de85b0 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 27 Mar 2018 02:08:01 +0545 Subject: [PATCH] core: clean up no longer useful Latch.__repr__ Those fields are always None since the recent fork cleanup work. --- mitogen/core.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mitogen/core.py b/mitogen/core.py index 9dcfc6da..9672e2ba 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1019,14 +1019,10 @@ class Latch(object): raise def __repr__(self): - rsock = getattr(_tls, 'rsock', None) - wsock = getattr(_tls, 'wsock', None) - return 'Latch(%#x, size=%d, t=%r, r=%r, w=%r)' % ( + return 'Latch(%#x, size=%d, t=%r)' % ( id(self), len(self._queue), threading.currentThread().name, - rsock and rsock.fileno(), - wsock and wsock.fileno(), )