summaryrefslogtreecommitdiff
path: root/paramiko/client.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/client.py
parent0bf3fa458deffe1306f226a7257ceda927ca9e8e (diff)
downloadparamiko-c091e756084ce017d8d872ffeaf95422f79140f1.tar.gz
Blacken under black 18.5b0
Diffstat (limited to 'paramiko/client.py')
-rw-r--r--paramiko/client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 8690c86d..2538d582 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -562,7 +562,7 @@ class SSHClient(ClosingContextManager):
cert_suffix = "-cert.pub"
# Assume privkey, not cert, by default
if filename.endswith(cert_suffix):
- key_path = filename[:-len(cert_suffix)]
+ key_path = filename[: -len(cert_suffix)]
cert_path = filename
else:
key_path = filename
@@ -648,7 +648,7 @@ class SSHClient(ClosingContextManager):
allowed_types = set(
self._transport.auth_publickey(username, pkey)
)
- two_factor = (allowed_types & two_factor_types)
+ two_factor = allowed_types & two_factor_types
if not two_factor:
return
except SSHException as e:
@@ -664,7 +664,7 @@ class SSHClient(ClosingContextManager):
allowed_types = set(
self._transport.auth_publickey(username, key)
)
- two_factor = (allowed_types & two_factor_types)
+ two_factor = allowed_types & two_factor_types
if not two_factor:
return
break
@@ -684,7 +684,7 @@ class SSHClient(ClosingContextManager):
allowed_types = set(
self._transport.auth_publickey(username, key)
)
- two_factor = (allowed_types & two_factor_types)
+ two_factor = allowed_types & two_factor_types
if not two_factor:
return
break
@@ -724,7 +724,7 @@ class SSHClient(ClosingContextManager):
allowed_types = set(
self._transport.auth_publickey(username, key)
)
- two_factor = (allowed_types & two_factor_types)
+ two_factor = allowed_types & two_factor_types
if not two_factor:
return
break