Skip to content

Commit

Permalink
Use keyword arguments for arguments when creating a Transport.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith authored and bitprophet committed Sep 22, 2014
1 parent 8bc2e82 commit 641a8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paramiko/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def connect(self, hostname, port=SSH_PORT, username=None, password=None, pkey=No
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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_kex_gss.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def tearDown(self):

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)
Expand Down

0 comments on commit 641a8cb

Please sign in to comment.