summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-11-02 13:37:12 -0800
committerJeff Forcier <jeff@bitprophet.org>2015-11-02 13:37:12 -0800
commita1d0cd6c6c375e6b1c17710805f0a2e7503ee0a9 (patch)
tree28f75ce12886b9a71b9d4e5e58de7a5e5dddf850
parentf3649c0d7d9d6d46269c5ad05ef88383cf50180f (diff)
80-col tweaks
-rw-r--r--paramiko/pkey.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index db5b77ac..d8018e70 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -171,8 +171,9 @@ class PKey (object):
is useless on the abstract PKey class.
:param str filename: name of the file to read
- :param str password: an optional password to use to decrypt the key file,
- if it's encrypted
+ :param str password:
+ an optional password to use to decrypt the key file, if it's
+ encrypted
:return: a new `.PKey` based on the given private key
:raises IOError: if there was an error reading the file
@@ -187,8 +188,8 @@ class PKey (object):
def from_private_key(cls, file_obj, password=None):
"""
Create a key object by reading a private key from a file (or file-like)
- object. If the private key is encrypted and ``password`` is not ``None``,
- the given password will be used to decrypt the key (otherwise
+ object. If the private key is encrypted and ``password`` is not
+ ``None``, the given password will be used to decrypt the key (otherwise
`.PasswordRequiredException` is thrown).
:param file file_obj: the file to read from
@@ -197,8 +198,8 @@ class PKey (object):
:return: a new `.PKey` based on the given private key
:raises IOError: if there was an error reading the key
- :raises PasswordRequiredException: if the private key file is encrypted,
- and ``password`` is ``None``
+ :raises PasswordRequiredException:
+ if the private key file is encrypted, and ``password`` is ``None``
:raises SSHException: if the key file is invalid
"""
key = cls(file_obj=file_obj, password=password)