Removed "In the current version"

This commit is contained in:
Andrew Murray 2024-03-26 05:50:08 +11:00 committed by Hugo van Kemenade
parent 27b10c4bd8
commit a7e82cbe9a
2 changed files with 12 additions and 15 deletions

View File

@ -7,9 +7,9 @@
The :py:mod:`~PIL.ImageMath` module can be used to evaluate “image expressions”, that
can take a number of images and generate a result.
In the current version, :py:mod:`~PIL.ImageMath` only supports single-layer images. To
process multi-band images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:func:`~PIL.Image.merge` function.
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
images, use the :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
function.
Example: Using the :py:mod:`~PIL.ImageMath` module
--------------------------------------------------
@ -51,10 +51,9 @@ Example: Using the :py:mod:`~PIL.ImageMath` module
recommended to process expressions without considering this.
:py:meth:`~lambda_eval` is a more secure alternative.
In the current version, :py:mod:`~PIL.ImageMath` only supports
single-layer images. To process multi-band images, use the
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
function.
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:func:`~PIL.Image.merge` function.
:param expression: A string which uses the standard Python expression
syntax. In addition to the standard operators, you can

View File

@ -242,10 +242,9 @@ def lambda_eval(expression: Callable[[dict[str, Any]], Any],
"""
Returns the result of an image function.
In the current version, :py:mod:`~PIL.ImageMath` only supports
single-layer images. To process multi-band images, use the
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
function.
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:func:`~PIL.Image.merge` function.
:param expression: A function that receives a dictionary.
:param options: Values to add to the function's dictionary. You
@ -281,10 +280,9 @@ def unsafe_eval(
recommended to process expressions without considering this.
:py:meth:`~lambda_eval` is a more secure alternative.
In the current version, :py:mod:`~PIL.ImageMath` only supports
single-layer images. To process multi-band images, use the
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
function.
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
images, use the :py:meth:`~PIL.Image.Image.split` method or
:py:func:`~PIL.Image.merge` function.
:param expression: A string containing a Python-style expression.
:param options: Values to add to the evaluation context. You