Re-document deprecation versions of removals

This commit is contained in:
Hugo van Kemenade 2020-07-09 12:46:44 +03:00
parent 4323d975be
commit 7c03590bcb

View File

@ -78,6 +78,7 @@ period of deprecation has passed.
Python 2.7 Python 2.7
~~~~~~~~~~ ~~~~~~~~~~
.. deprecated:: 6.0.0
.. versionremoved:: 7.0.0 .. versionremoved:: 7.0.0
Python 2.7 reached end-of-life on 2020-01-01. Pillow 6.x was the last series to Python 2.7 reached end-of-life on 2020-01-01. Pillow 6.x was the last series to
@ -86,6 +87,7 @@ support Python 2.
Image.__del__ Image.__del__
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
.. deprecated:: 6.1.0
.. versionremoved:: 7.0.0 .. versionremoved:: 7.0.0
Implicitly closing the image's underlying file in ``Image.__del__`` has been removed. Implicitly closing the image's underlying file in ``Image.__del__`` has been removed.
@ -109,6 +111,7 @@ Use instead:
PIL.*ImagePlugin.__version__ attributes PIL.*ImagePlugin.__version__ attributes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. deprecated:: 6.0.0
.. versionremoved:: 7.0.0 .. versionremoved:: 7.0.0
The version constants of individual plugins have been removed. Use ``PIL.__version__`` The version constants of individual plugins have been removed. Use ``PIL.__version__``
@ -134,6 +137,7 @@ Removed Removed Removed
PyQt4 and PySide PyQt4 and PySide
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
.. deprecated:: 6.0.0
.. versionremoved:: 7.0.0 .. versionremoved:: 7.0.0
Qt 4 reached end-of-life on 2015-12-19. Its Python bindings are also EOL: PyQt4 since Qt 4 reached end-of-life on 2015-12-19. Its Python bindings are also EOL: PyQt4 since
@ -145,6 +149,7 @@ or PySide2.
Setting the size of TIFF images Setting the size of TIFF images
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. deprecated:: 5.3.0
.. versionremoved:: 7.0.0 .. versionremoved:: 7.0.0
Setting the size of a TIFF image directly (eg. ``im.size = (256, 256)``) throws Setting the size of a TIFF image directly (eg. ``im.size = (256, 256)``) throws
@ -153,6 +158,7 @@ an error. Use ``Image.resize`` instead.
VERSION constant VERSION constant
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
.. deprecated:: 5.2.0
.. versionremoved:: 6.0.0 .. versionremoved:: 6.0.0
``VERSION`` (the old PIL version, always 1.1.7) has been removed. Use ``VERSION`` (the old PIL version, always 1.1.7) has been removed. Use
@ -161,6 +167,7 @@ VERSION constant
Undocumented ImageOps functions Undocumented ImageOps functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. deprecated:: 4.3.0
.. versionremoved:: 6.0.0 .. versionremoved:: 6.0.0
Several undocumented functions in ``ImageOps`` have been removed. Use the equivalents Several undocumented functions in ``ImageOps`` have been removed. Use the equivalents
@ -179,6 +186,7 @@ Removed Use instead
PIL.OleFileIO PIL.OleFileIO
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
.. deprecated:: 4.0.0
.. versionremoved:: 6.0.0 .. versionremoved:: 6.0.0
PIL.OleFileIO was removed as a vendored file and in Pillow 4.0.0 (2017-01) in favour of PIL.OleFileIO was removed as a vendored file and in Pillow 4.0.0 (2017-01) in favour of