summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/transport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index d3990e54..eb68211f 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -57,7 +57,7 @@ from paramiko.server import ServerInterface
from paramiko.sftp_client import SFTPClient
from paramiko.ssh_exception import (SSHException, BadAuthenticationType,
ChannelException, ProxyCommandFailure)
-from paramiko.util import retry_on_signal
+from paramiko.util import retry_on_signal, ClosingContextManager
from Crypto.Cipher import Blowfish, AES, DES3, ARC4
try:
@@ -77,7 +77,7 @@ import atexit
atexit.register(_join_lingering_threads)
-class Transport (threading.Thread):
+class Transport (threading.Thread, ClosingContextManager):
"""
An SSH Transport attaches to a stream (usually a socket), negotiates an
encrypted session, authenticates, and then creates stream tunnels, called