From 5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Mon, 16 Nov 2015 12:43:21 -0500 Subject: asyncio: Add Transport.is_closing() See https://github.com/python/asyncio/pull/291 for details. --- Lib/asyncio/sslproto.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/asyncio/sslproto.py') diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 9e08b6f88b..dde980b68f 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -304,6 +304,9 @@ class _SSLProtocolTransport(transports._FlowControlMixin, """Get optional transport information.""" return self._ssl_protocol._get_extra_info(name, default) + def is_closing(self): + return self._closed + def close(self): """Close the transport. -- cgit v1.2.1