mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Document when deprecations will be removed [CI skip]
This commit is contained in:
parent
839d54a19b
commit
0893f502c3
|
@ -17,7 +17,7 @@ Image.show command parameter
|
|||
|
||||
.. deprecated:: 7.2.0
|
||||
|
||||
The ``command`` parameter was deprecated and will be removed in a future release.
|
||||
The ``command`` parameter will be removed in Pillow 9.0.0 (2022-01-02).
|
||||
Use a subclass of :py:class:`.ImageShow.Viewer` instead.
|
||||
|
||||
Image._showxv
|
||||
|
@ -25,26 +25,26 @@ Image._showxv
|
|||
|
||||
.. deprecated:: 7.2.0
|
||||
|
||||
``Image._showxv`` has been deprecated. Use :py:meth:`.Image.Image.show`
|
||||
instead. If custom behaviour is required, use :py:func:`.ImageShow.register` to add
|
||||
a custom :py:class:`.ImageShow.Viewer` class.
|
||||
``Image._showxv`` will be removed in Pillow 9.0.0 (2022-01-02).
|
||||
Use :py:meth:`.Image.Image.show` instead. If custom behaviour is required, use
|
||||
:py:func:`.ImageShow.register` to add a custom :py:class:`.ImageShow.Viewer` class.
|
||||
|
||||
ImageFile.raise_ioerror
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. deprecated:: 7.2.0
|
||||
|
||||
``IOError`` was merged into ``OSError`` in Python 3.3. So, ``ImageFile.raise_ioerror``
|
||||
is now deprecated and will be removed in a future release. Use
|
||||
``ImageFile.raise_oserror`` instead.
|
||||
``IOError`` was merged into ``OSError`` in Python 3.3.
|
||||
So, ``ImageFile.raise_ioerror`` will be removed in Pillow 9.0.0 (2022-01-02).
|
||||
Use ``ImageFile.raise_oserror`` instead.
|
||||
|
||||
PILLOW_VERSION constant
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. deprecated:: 5.2.0
|
||||
|
||||
``PILLOW_VERSION`` has been deprecated and will be removed in a future release. Use
|
||||
``__version__`` instead.
|
||||
``PILLOW_VERSION`` will be removed in Pillow 9.0.0 (2022-01-02).
|
||||
Use ``__version__`` instead.
|
||||
|
||||
It was initially removed in Pillow 7.0.0, but brought back in 7.1.0 to give projects
|
||||
more time to upgrade.
|
||||
|
|
|
@ -2197,8 +2197,8 @@ class Image:
|
|||
|
||||
if command is not None:
|
||||
warnings.warn(
|
||||
"The command parameter is deprecated and will be removed in a future "
|
||||
"release. Use a subclass of ImageShow.Viewer instead.",
|
||||
"The command parameter is deprecated and will be removed in Pillow 9 "
|
||||
"(2022-01-02). Use a subclass of ImageShow.Viewer instead.",
|
||||
DeprecationWarning,
|
||||
)
|
||||
|
||||
|
@ -3176,7 +3176,7 @@ def _showxv(image, title=None, **options):
|
|||
del options["_internal_pillow"]
|
||||
else:
|
||||
warnings.warn(
|
||||
"_showxv is deprecated and will be removed in a future release. "
|
||||
"_showxv is deprecated and will be removed in Pillow 9 (2022-01-02). "
|
||||
"Use Image.show instead.",
|
||||
DeprecationWarning,
|
||||
)
|
||||
|
|
|
@ -69,7 +69,7 @@ def raise_oserror(error):
|
|||
|
||||
def raise_ioerror(error):
|
||||
warnings.warn(
|
||||
"raise_ioerror is deprecated and will be removed in a future release. "
|
||||
"raise_ioerror is deprecated and will be removed in Pillow 9 (2022-01-02). "
|
||||
"Use raise_oserror instead.",
|
||||
DeprecationWarning,
|
||||
)
|
||||
|
|
|
@ -26,7 +26,7 @@ __version__ = _version.__version__
|
|||
# Use __version__ instead.
|
||||
def _raise_version_warning():
|
||||
warnings.warn(
|
||||
"PILLOW_VERSION is deprecated and will be removed in a future release. "
|
||||
"PILLOW_VERSION is deprecated and will be removed in Pillow 9 (2022-01-02). "
|
||||
"Use __version__ instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=3,
|
||||
|
|
Loading…
Reference in New Issue
Block a user