summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-09-13 09:13:59 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-09-13 09:14:59 -0700
commitfe05754f004ce78d03ebbee5e68425e1959944ca (patch)
treefd017e30c6fc22af392462e5e95f3b87b7f46a76
parent1217df3c80a43384a647158a9eefc1d7bcc25f82 (diff)
downloadparamiko-fe05754f004ce78d03ebbee5e68425e1959944ca.tar.gz
More formatting
-rw-r--r--paramiko/client.py12
-rw-r--r--paramiko/transport.py7
2 files changed, 11 insertions, 8 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index e9099851..998e0166 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -407,8 +407,10 @@ class SSHClient (ClosingContextManager):
else:
key_filenames = key_filename
- self._auth(username, password, pkey, key_filenames, allow_agent,
- look_for_keys, gss_auth, gss_kex, gss_deleg_creds, t.gss_host)
+ self._auth(
+ username, password, pkey, key_filenames, allow_agent,
+ look_for_keys, gss_auth, gss_kex, gss_deleg_creds, t.gss_host,
+ )
def close(self):
"""
@@ -582,9 +584,9 @@ class SSHClient (ClosingContextManager):
# why should we do that again?
if gss_auth:
try:
- self._transport.auth_gssapi_with_mic(username, gss_host,
- gss_deleg_creds)
- return
+ return self._transport.auth_gssapi_with_mic(
+ username, gss_host, gss_deleg_creds,
+ )
except Exception as e:
saved_exception = e
diff --git a/paramiko/transport.py b/paramiko/transport.py
index e4bbfdb3..df698300 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1130,9 +1130,10 @@ class Transport(threading.Thread, ClosingContextManager):
Perform GSS-API Key Exchange and user authentication.
:param bool gss_deleg_creds:
Whether to delegate GSS-API client credentials.
- :param gss_trust_dns: Indicates whether or not the DNS is trusted to
- securely canonicalize the name of the host being
- connected to (default ``True``).
+ :param gss_trust_dns:
+ Indicates whether or not the DNS is trusted to securely
+ canonicalize the name of the host being connected to (default
+ ``True``).
:raises: `.SSHException` -- if the SSH2 negotiation fails, the host key
supplied by the server is incorrect, or authentication fails.