diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-11 14:54:49 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-11 14:54:49 -0700 |
commit | 838748dcb61af0a469230690aa369dd1ae8895ab (patch) | |
tree | facf919a43a41cf5b73cb9e1ed986e91d2772c6e /paramiko/pkey.py | |
parent | 75d7abb97608a5fad14aad1d85c421a7a713f6e9 (diff) | |
download | paramiko-838748dcb61af0a469230690aa369dd1ae8895ab.tar.gz |
flake8 for previous changeset
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r-- | paramiko/pkey.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py index ae01dca2..808215f8 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -310,9 +310,11 @@ class PKey(object): # unencryped: done return data # encrypted keyfile: will need a password - if headers['proc-type'] != '4,ENCRYPTED': + proc_type = headers['proc-type'] + if proc_type != '4,ENCRYPTED': raise SSHException( - 'Unknown private key structure "{}"'.format(headers['proc-type'])) + 'Unknown private key structure "{}"'.format(proc_type) + ) try: encryption_type, saltstr = headers['dek-info'].split(',') except: |