From 0eeba2eaa81803ace2735f4e44f301d89d7d2391 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 24 Mar 2018 18:35:07 +0545 Subject: [PATCH] core: include fds in Waker repr --- mitogen/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 924b6907..b0741cd8 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1016,7 +1016,11 @@ class Waker(BasicStream): self.transmit_side = Side(self, wfd) def __repr__(self): - return 'Waker(%r)' % (self._broker,) + return 'Waker(%r rfd=%r, wfd=%r)' % ( + self._broker, + self.receive_side.fd, + self.transmit_side.fd, + ) def on_receive(self, broker): """