Adds an override of BaseTransport.is_closing() to SerialTransport as required by Python 3.5.1.
diff --git a/serial/aio.py b/serial/aio.py
index a4e8357..7f5df2f 100644
--- a/serial/aio.py
+++ b/serial/aio.py
@@ -36,6 +36,10 @@
def __repr__(self):
return '{self.__class__.__name__}({self._loop}, {self._protocol}, {self.serial})'.format(self=self)
+ def is_closing(self):
+ """Return True if the transport is closing or closed."""
+ return self._closing
+
def close(self, exc=None):
if self._closing:
return