core: Don't crash in Waker.__repr__ if partially initialized.

issue260
David Wilson 6 years ago
parent 87e8c45f76
commit e4280dc14a

@ -1930,8 +1930,8 @@ class Waker(BasicStream):
def __repr__(self):
return 'Waker(%r rfd=%r, wfd=%r)' % (
self._broker,
self.receive_side.fd,
self.transmit_side.fd,
self.receive_side and self.receive_side.fd,
self.transmit_side and self.transmit_side.fd,
)
@property

Loading…
Cancel
Save