diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-11 20:24:13 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-11 20:24:13 -0500 |
commit | ec8948158e26df0ec549e333cc2ea4bb22d56350 (patch) | |
tree | 605531478922a9b56d867e8044387711f32b68d2 /paramiko/pkey.py | |
parent | 19a00412bfecd43d4fa6a13459955ccb13f29e02 (diff) | |
download | paramiko-ec8948158e26df0ec549e333cc2ea4bb22d56350.tar.gz |
blacken
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r-- | paramiko/pkey.py | 2 |
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") |