Link to the replacement functions

Co-authored-by: nulano <nulano@nulano.eu>
This commit is contained in:
Hugo van Kemenade 2020-07-18 10:09:15 +03:00 committed by GitHub
parent 40aefc6ba5
commit 39bc25e28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,9 +74,9 @@ im.fromstring and tostring
.. deprecated:: 2.0.0
.. versionremoved:: 8.0.0
* ``Image.fromstring()`` has been removed, call ``frombytes()`` instead.
* ``im.fromstring()`` has been removed, call ``frombytes()`` instead.
* ``im.tostring()`` has been removed, call ``tobytes()`` instead.
* ``Image.fromstring()`` has been removed, call :py:func:`.Image.frombytes()` instead.
* ``im.fromstring()`` has been removed, call :py:meth:`~PIL.Image.Image.frombytes()` instead.
* ``im.tostring()`` has been removed, call :py:meth:`~PIL.Image.Image.tobytes()` instead.
They issued a ``DeprecationWarning`` since 2.0.0,
an ``Exception`` since 3.0.0