diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-11-16 17:43:21 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-11-16 17:43:21 (GMT) |
commit | 5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c (patch) | |
tree | 6c9e387872b2ffb45429ee4c3e516f8b59c3b483 /Lib/asyncio/sslproto.py | |
parent | da32d26ab98cdb3fe27ee8d61460592fc1cae335 (diff) | |
download | cpython-5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c.zip cpython-5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c.tar.gz cpython-5bb1afb3322ecf370cf328d40fb95eb0a3ddab7c.tar.bz2 |
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.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 9e08b6f..dde980b 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. |