diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-06-06 13:48:17 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-06-06 13:48:17 -0700 |
commit | f570418d6a31916991fe963a3e01cbcf75f5cbae (patch) | |
tree | 9940cff41d0d8bff5555ae8c59759537eabce28d /paramiko/rsakey.py | |
parent | d69ef77f7698de677bd977483ba8c1c558b19d02 (diff) | |
parent | 947bd10f451f8a0249fdd8e234429f8a657c60ae (diff) | |
download | paramiko-f570418d6a31916991fe963a3e01cbcf75f5cbae.tar.gz |
Merge branch 'master' into 921-int
Diffstat (limited to 'paramiko/rsakey.py')
-rw-r--r-- | paramiko/rsakey.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/paramiko/rsakey.py b/paramiko/rsakey.py index 8ad6d6e4..b5107515 100644 --- a/paramiko/rsakey.py +++ b/paramiko/rsakey.py @@ -37,7 +37,8 @@ class RSAKey(PKey): data. """ - def __init__(self, msg=None, data=None, filename=None, password=None, key=None, file_obj=None): + def __init__(self, msg=None, data=None, filename=None, password=None, + key=None, file_obj=None): self.key = None if file_obj is not None: self._from_private_key(file_obj, password) @@ -157,7 +158,7 @@ class RSAKey(PKey): generate a new host key or authentication key. :param int bits: number of bits the generated key should be. - :param function progress_func: Unused + :param progress_func: Unused :return: new `.RSAKey` private key """ key = rsa.generate_private_key( @@ -165,7 +166,7 @@ class RSAKey(PKey): ) return RSAKey(key=key) - ### internals... + # ...internals... def _from_private_key_file(self, filename, password): data = self._read_private_key_file('RSA', filename, password) |