diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-04-16 16:17:23 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-05-05 12:27:03 -0400 |
commit | 50a6004ddd642a73520b780899740c4e660b7762 (patch) | |
tree | 004daa5a96d63e38cbd4037e2b0e6889116f1e9f | |
parent | 3ae1a968f30d9682529873d15ef81fa06bf36cdc (diff) |
Fix inaccurate PKey.__init__ docstring: data is bytes, not str
This seems likely a missed spot from the Python 3 conversion or the
Python 2 drop.
-rw-r--r-- | paramiko/pkey.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py index 69117bc1..c0844407 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -101,8 +101,8 @@ class PKey: :param .Message msg: an optional SSH `.Message` containing a public key of this type. - :param str data: an optional string containing a public key - of this type + :param bytes data: + optional, the bytes of a public key of this type :raises: `.SSHException` -- if a key cannot be created from the ``data`` or ``msg`` given, or |