summaryrefslogtreecommitdiff
path: root/paramiko/auth_handler.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2018-05-29 15:18:24 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-05-29 15:18:34 -0700
commitc091e756084ce017d8d872ffeaf95422f79140f1 (patch)
tree4c8c82399a6a21217f78ff36a90c3a355f6a0c23 /paramiko/auth_handler.py
parent0bf3fa458deffe1306f226a7257ceda927ca9e8e (diff)
downloadparamiko-c091e756084ce017d8d872ffeaf95422f79140f1.tar.gz
Blacken under black 18.5b0
Diffstat (limited to 'paramiko/auth_handler.py')
-rw-r--r--paramiko/auth_handler.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py
index 416657e2..3f0456e5 100644
--- a/paramiko/auth_handler.py
+++ b/paramiko/auth_handler.py
@@ -464,9 +464,8 @@ Error Message: {}
if service != "ssh-connection":
self._disconnect_service_not_available()
return
- if (
- (self.auth_username is not None)
- and (self.auth_username != username)
+ if (self.auth_username is not None) and (
+ self.auth_username != username
):
self._log(
WARNING,
@@ -514,7 +513,9 @@ Error Message: {}
self._log(INFO, "Auth rejected: public key: {}".format(str(e)))
key = None
except Exception as e:
- msg = "Auth rejected: unsupported or mangled public key ({}: {})" # noqa
+ msg = (
+ "Auth rejected: unsupported or mangled public key ({}: {})"
+ ) # noqa
self._log(INFO, msg.format(e.__class__.__name__, e))
key = None
if key is None: