summaryrefslogtreecommitdiff
path: root/paramiko/pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-12 21:17:00 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-12 21:44:59 -0500
commitd04966dcec2f8e34f0ec0aea216ea098673ae90b (patch)
treee203bcda882e2b90124e209db4ffa0d5c990a516 /paramiko/pkey.py
parent714350c4dd459577898d72a59edc3213a99443d6 (diff)
downloadparamiko-d04966dcec2f8e34f0ec0aea216ea098673ae90b.tar.gz
Swap around __bytes__/__str__ for some classes
Plus related updates to tests, docstrings, changelog
Diffstat (limited to 'paramiko/pkey.py')
-rw-r--r--paramiko/pkey.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index 058d1258..d5ea27b6 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -110,6 +110,7 @@ class PKey(object):
"""
pass
+ # TODO 4.0: just merge into __bytes__ (everywhere)
def asbytes(self):
"""
Return a string of an SSH `.Message` made up of the public part(s) of
@@ -118,7 +119,7 @@ class PKey(object):
"""
return bytes()
- def __str__(self):
+ def __bytes__(self):
return self.asbytes()
# noinspection PyUnresolvedReferences