summaryrefslogtreecommitdiff
path: root/Lib/asyncio/sslproto.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-11-16 12:43:21 -0500
committerYury Selivanov <yselivanov@sprymix.com>2015-11-16 12:43:21 -0500
commit5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c (patch)
tree6c9e387872b2ffb45429ee4c3e516f8b59c3b483 /Lib/asyncio/sslproto.py
parentda32d26ab98cdb3fe27ee8d61460592fc1cae335 (diff)
downloadcpython-git-5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c.tar.gz
asyncio: Add Transport.is_closing()
See https://github.com/python/asyncio/pull/291 for details.
Diffstat (limited to 'Lib/asyncio/sslproto.py')
-rw-r--r--Lib/asyncio/sslproto.py3
1 files changed, 3 insertions, 0 deletions
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.