summaryrefslogtreecommitdiff
path: root/paramiko/pkey.py
diff options
context:
space:
mode:
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")