diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-12 21:17:00 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-12 21:44:59 -0500 |
commit | d04966dcec2f8e34f0ec0aea216ea098673ae90b (patch) | |
tree | e203bcda882e2b90124e209db4ffa0d5c990a516 /sites/www | |
parent | 714350c4dd459577898d72a59edc3213a99443d6 (diff) |
Swap around __bytes__/__str__ for some classes
Plus related updates to tests, docstrings, changelog
Diffstat (limited to 'sites/www')
-rw-r--r-- | sites/www/changelog.rst | 8 |
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`. |