Skip to content

Commit

Permalink
change PSFile deprecation from 9.4.0 to 9.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Mar 29, 2023
1 parent b8b153f commit 61d0c8f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
20 changes: 10 additions & 10 deletions docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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
===================================================== ============================================================
Expand Down Expand Up @@ -217,6 +207,16 @@ Use instead::
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld")
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
----------------

Expand Down
11 changes: 0 additions & 11 deletions docs/releasenotes/9.4.0.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
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
=============

Expand Down
9 changes: 6 additions & 3 deletions docs/releasenotes/9.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ TODO
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
===========
Expand Down

0 comments on commit 61d0c8f

Please sign in to comment.