summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2016-07-25 20:32:17 -0700
committerJeff Forcier <jeff@bitprophet.org>2016-07-25 20:32:17 -0700
commit94ae8ffb36d0a7bbaf402573eff560da1997f84f (patch)
tree4b0db9aeb21f804689e4e0febbc3f081edf94b4a
parent951eecebc5d6238c39d82df71b925855bdc19c56 (diff)
Give Channel ._closed as alias to .closed.
Fixes #774.
-rw-r--r--paramiko/channel.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/paramiko/channel.py b/paramiko/channel.py
index 3c43eb10..3a05bdc4 100644
--- a/paramiko/channel.py
+++ b/paramiko/channel.py
@@ -887,6 +887,12 @@ class Channel (ClosingContextManager):
"""
self.shutdown(1)
+ @property
+ def _closed(self):
+ # Concession to Python 3's socket API, which has a private ._closed
+ # attribute instead of a semipublic .closed attribute.
+ return self.closed
+
### calls from Transport
def _set_transport(self, transport):