From a776b5086e32ecc78b756467af513c04cb83d79d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 18 Oct 2014 04:57:51 +0300 Subject: [PATCH] uasyncio: Add __repr__() for StreamReader/StreamWriter. --- uasyncio/uasyncio.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uasyncio/uasyncio.py b/uasyncio/uasyncio.py index 858fe417..f34123e6 100644 --- a/uasyncio/uasyncio.py +++ b/uasyncio/uasyncio.py @@ -211,6 +211,9 @@ class StreamReader: log.debug("StreamReader.readline(): res: %s", res) return res + def __repr__(self): + return "" % self.s + class StreamWriter: @@ -244,6 +247,9 @@ class StreamWriter: yield IOWriteDone(self.s) self.s.close() + def __repr__(self): + return "" % self.s + def open_connection(host, port): log.debug("open_connection(%s, %s)", host, port)