Commit 5b87d10a authored by David Wilson's avatar David Wilson

core: clean up no longer useful Latch.__repr__

Those fields are always None since the recent fork cleanup work.
parent d4bc4446
......@@ -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(),
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment