summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDylan Thacker-Smith <Dylan.Smith@shopify.com>2014-09-21 23:13:42 -0400
committerJeff Forcier <jeff@bitprophet.org>2014-09-22 09:57:57 -0700
commit641a8cb62d43ce7ed1e07ddb61bca2744547f73a (patch)
tree23cb3f0bd5c66996bdbcec9e915662c34059e85c
parent8bc2e827cffa7efce074404f71ad62ac028c5c84 (diff)
Use keyword arguments for arguments when creating a Transport.
Fixes #399
-rw-r--r--paramiko/client.py2
-rw-r--r--tests/test_kex_gss.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 05686d97..393e3e09 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -250,7 +250,7 @@ class SSHClient (ClosingContextManager):
pass
retry_on_signal(lambda: sock.connect(addr))
- t = self._transport = Transport(sock, gss_kex, gss_deleg_creds)
+ t = self._transport = Transport(sock, gss_kex=gss_kex, gss_deleg_creds=gss_deleg_creds)
t.use_compression(compress=compress)
if gss_kex and gss_host is None:
t.set_gss_host(hostname)
diff --git a/tests/test_kex_gss.py b/tests/test_kex_gss.py
index b5e277b3..8769d09c 100644
--- a/tests/test_kex_gss.py
+++ b/tests/test_kex_gss.py
@@ -84,7 +84,7 @@ class GSSKexTest(unittest.TestCase):
def _run(self):
self.socks, addr = self.sockl.accept()
- self.ts = paramiko.Transport(self.socks, True)
+ self.ts = paramiko.Transport(self.socks, gss_kex=True)
host_key = paramiko.RSAKey.from_private_key_file('tests/test_rsa.key')
self.ts.add_server_key(host_key)
self.ts.set_gss_host(targ_name)