summaryrefslogtreecommitdiff
path: root/sites
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 /sites
parent714350c4dd459577898d72a59edc3213a99443d6 (diff)
downloadparamiko-d04966dcec2f8e34f0ec0aea216ea098673ae90b.tar.gz
Swap around __bytes__/__str__ for some classes
Plus related updates to tests, docstrings, changelog
Diffstat (limited to 'sites')
-rw-r--r--sites/www/changelog.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/sites/www/changelog.rst b/sites/www/changelog.rst
index 595e2fde..63cb6d60 100644
--- a/sites/www/changelog.rst
+++ b/sites/www/changelog.rst
@@ -2,6 +2,14 @@
Changelog
=========
+- :bug:`- major` A handful of lower-level classes (notably
+ `paramiko.message.Message` and `paramiko.pkey.PKey`) previously returned
+ `bytes` objects from their implementation of ``__str__``, even under Python
+ 3; and there was never any ``__bytes__`` method.
+
+ These issues have been fixed by renaming ``__str__`` to ``__bytes__`` and
+ relying on Python's default "stringification returns the output of
+ ``__repr__``" behavior re: any real attempts to ``str()`` such objects.
- :support:`-` ``paramiko.common.asbytes`` has been moved to
`paramiko.util.asbytes`.