From 39bc25e28ac9da12e2fef3a741e22c6f37e50033 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 18 Jul 2020 10:09:15 +0300 Subject: [PATCH] Link to the replacement functions Co-authored-by: nulano --- docs/deprecations.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/deprecations.rst b/docs/deprecations.rst index f51961f1b..bd8384996 100644 --- a/docs/deprecations.rst +++ b/docs/deprecations.rst @@ -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