diff options
author | Jared Hobbs <jared@pyhacker.com> | 2018-11-27 17:48:12 -0700 |
---|---|---|
committer | Jared Hobbs <jared@pyhacker.com> | 2018-11-27 17:48:12 -0700 |
commit | e72aeaf1baf8c042179b88c718dd5fab0cecb3d2 (patch) | |
tree | 33009883e46e2eb4a1e7982cd5f7b1da65845a5c /paramiko/dsskey.py | |
parent | eff204faf5624c51b7ac96b9b93e4ce9622f853a (diff) | |
download | paramiko-e72aeaf1baf8c042179b88c718dd5fab0cecb3d2.tar.gz |
blacken
Diffstat (limited to 'paramiko/dsskey.py')
-rw-r--r-- | paramiko/dsskey.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/dsskey.py b/paramiko/dsskey.py index a1adf818..07feb790 100644 --- a/paramiko/dsskey.py +++ b/paramiko/dsskey.py @@ -238,10 +238,10 @@ class DSSKey(PKey): except BERException as e: raise SSHException("Unable to parse key file: " + str(e)) elif pkformat == self.PRIVATE_KEY_FORMAT_OPENSSH: - keylist = self._uint32_cstruct_unpack(data, 'iiiii') + keylist = self._uint32_cstruct_unpack(data, "iiiii") keylist = [0] + list(keylist) else: - raise SSHException('private key format.') + raise SSHException("private key format.") if type(keylist) is not list or len(keylist) < 6 or keylist[0] != 0: raise SSHException( "not a valid DSA private key file (bad ber encoding)" |