Skip to content

Commit a7e82cb

Browse files
radarherehugovk
authored andcommitted
Removed "In the current version"
1 parent 27b10c4 commit a7e82cb

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

docs/reference/ImageMath.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
The :py:mod:`~PIL.ImageMath` module can be used to evaluate “image expressions”, that
88
can take a number of images and generate a result.
99

10-
In the current version, :py:mod:`~PIL.ImageMath` only supports single-layer images. To
11-
process multi-band images, use the :py:meth:`~PIL.Image.Image.split` method or
12-
:py:func:`~PIL.Image.merge` function.
10+
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
11+
images, use the :py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
12+
function.
1313

1414
Example: Using the :py:mod:`~PIL.ImageMath` module
1515
--------------------------------------------------
@@ -51,10 +51,9 @@ Example: Using the :py:mod:`~PIL.ImageMath` module
5151
recommended to process expressions without considering this.
5252
:py:meth:`~lambda_eval` is a more secure alternative.
5353

54-
In the current version, :py:mod:`~PIL.ImageMath` only supports
55-
single-layer images. To process multi-band images, use the
56-
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
57-
function.
54+
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
55+
images, use the :py:meth:`~PIL.Image.Image.split` method or
56+
:py:func:`~PIL.Image.merge` function.
5857

5958
:param expression: A string which uses the standard Python expression
6059
syntax. In addition to the standard operators, you can

src/PIL/ImageMath.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,9 @@ def lambda_eval(expression: Callable[[dict[str, Any]], Any],
242242
"""
243243
Returns the result of an image function.
244244
245-
In the current version, :py:mod:`~PIL.ImageMath` only supports
246-
single-layer images. To process multi-band images, use the
247-
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
248-
function.
245+
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
246+
images, use the :py:meth:`~PIL.Image.Image.split` method or
247+
:py:func:`~PIL.Image.merge` function.
249248
250249
:param expression: A function that receives a dictionary.
251250
:param options: Values to add to the function's dictionary. You
@@ -281,10 +280,9 @@ def unsafe_eval(
281280
recommended to process expressions without considering this.
282281
:py:meth:`~lambda_eval` is a more secure alternative.
283282
284-
In the current version, :py:mod:`~PIL.ImageMath` only supports
285-
single-layer images. To process multi-band images, use the
286-
:py:meth:`~PIL.Image.Image.split` method or :py:func:`~PIL.Image.merge`
287-
function.
283+
:py:mod:`~PIL.ImageMath` only supports single-layer images. To process multi-band
284+
images, use the :py:meth:`~PIL.Image.Image.split` method or
285+
:py:func:`~PIL.Image.merge` function.
288286
289287
:param expression: A string containing a Python-style expression.
290288
:param options: Values to add to the evaluation context. You

0 commit comments

Comments
 (0)