summaryrefslogtreecommitdiff
path: root/paramiko/pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-11 20:24:13 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-11 20:24:13 -0500
commitec8948158e26df0ec549e333cc2ea4bb22d56350 (patch)
tree605531478922a9b56d867e8044387711f32b68d2 /paramiko/pkey.py
parent19a00412bfecd43d4fa6a13459955ccb13f29e02 (diff)
downloadparamiko-ec8948158e26df0ec549e333cc2ea4bb22d56350.tar.gz
blacken
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r--paramiko/pkey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index 5e4a51ca..895fd840 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -50,7 +50,7 @@ def _unpad_openssh(data):
# really ought to be made constant time (possibly by upstreaming this logic
# into pyca/cryptography).
padding_length = six.indexbytes(data, -1)
- if 0x20 <= padding_length < 0x7f:
+ if 0x20 <= padding_length < 0x7F:
return data # no padding, last byte part comment (printable ascii)
if padding_length > 15:
raise SSHException("Invalid key")