change PSFile deprecation from 9.4.0 to 9.5.0

This commit is contained in:
Yay295 2023-03-29 10:30:20 -05:00
parent b8b153fd77
commit 61d0c8f523
3 changed files with 16 additions and 24 deletions

View File

@ -80,16 +80,6 @@ A number of constants have been deprecated and will be removed in Pillow 10.0.0
was reversed in Pillow 9.4.0 and those constants will now remain available. was reversed in Pillow 9.4.0 and those constants will now remain available.
See :ref:`restored-image-constants` See :ref:`restored-image-constants`
PSFile
~~~~~~
.. deprecated:: 9.4.0
The :py:class:`~PIL.EpsImagePlugin.PSFile` class has been deprecated and will
be removed in Pillow 11 (2024-10-15). This class was only made as a helper to
be used internally, so there is no replacement. If you need this functionality
though, it is a very short class that can easily be recreated in your own code.
===================================================== ============================================================ ===================================================== ============================================================
Deprecated Use instead Deprecated Use instead
===================================================== ============================================================ ===================================================== ============================================================
@ -217,6 +207,16 @@ Use instead::
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld") left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld")
width, height = right - left, bottom - top width, height = right - left, bottom - top
PSFile
~~~~~~
.. deprecated:: 9.5.0
The :py:class:`~PIL.EpsImagePlugin.PSFile` class has been deprecated and will
be removed in Pillow 11 (2024-10-15). This class was only made as a helper to
be used internally, so there is no replacement. If you need this functionality
though, it is a very short class that can easily be recreated in your own code.
Removed features Removed features
---------------- ----------------

View File

@ -1,17 +1,6 @@
9.4.0 9.4.0
----- -----
Deprecations
============
PSFile
^^^^^^
The :py:class:`~PIL.EpsImagePlugin.PSFile` class has been deprecated and will
be removed in Pillow 11 (2024-10-15). This class was only made as a helper to
be used internally, so there is no replacement. If you need this functionality
though, it is a very short class that can easily be recreated in your own code.
API Additions API Additions
============= =============

View File

@ -12,10 +12,13 @@ TODO
Deprecations Deprecations
============ ============
TODO PSFile
^^^^ ^^^^^^
TODO The :py:class:`~PIL.EpsImagePlugin.PSFile` class has been deprecated and will
be removed in Pillow 11 (2024-10-15). This class was only made as a helper to
be used internally, so there is no replacement. If you need this functionality
though, it is a very short class that can easily be recreated in your own code.
API Changes API Changes
=========== ===========