Skip to content

Commit fb84c54

Browse files
committed
Removed references to the "current version"
1 parent 58c4c75 commit fb84c54

File tree

6 files changed

+17
-23
lines changed

6 files changed

+17
-23
lines changed

docs/handbook/image-file-formats.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,9 +1355,8 @@ The :py:meth:`~PIL.Image.open` method sets the following
13551355
FPX
13561356
^^^
13571357

1358-
Pillow reads Kodak FlashPix files. In the current version, only the highest
1359-
resolution image is read from the file, and the viewing transform is not taken
1360-
into account.
1358+
Pillow reads Kodak FlashPix files. Only the highest resolution image is read from the
1359+
file, and the viewing transform is not taken into account.
13611360

13621361
To enable FPX support, you must install :pypi:`olefile`.
13631362

docs/reference/ImageFilter.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ Example: Filter an image
2323
Filters
2424
-------
2525

26-
The current version of the library provides the following set of predefined
27-
image enhancement filters:
26+
Pillow provides the following set of predefined image enhancement filters:
2827

2928
* **BLUR**
3029
* **CONTOUR**

docs/reference/ImagePath.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ vector data. Path objects can be passed to the methods on the
2121

2222
The path object implements most parts of the Python sequence interface, and
2323
behaves like a list of (x, y) pairs. You can use len(), item access, and
24-
slicing as usual. However, the current version does not support slice
25-
assignment, or item and slice deletion.
24+
slicing as usual. However, this does not support slice assignment, or item
25+
and slice deletion.
2626

2727
:param xy: A sequence. The sequence can contain 2-tuples [(x, y), ...]
2828
or a flat list of numbers [x, y, ...].

src/PIL/Image.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,8 @@ def convert(
894894
omitted, a mode is chosen so that all information in the image
895895
and the palette can be represented without a palette.
896896
897-
The current version supports all possible conversions between
898-
"L", "RGB" and "CMYK". The ``matrix`` argument only supports "L"
899-
and "RGB".
897+
This supports all possible conversions between "L", "RGB" and "CMYK". The
898+
``matrix`` argument only supports "L" and "RGB".
900899
901900
When translating a color image to grayscale (mode "L"),
902901
the library uses the ITU-R 601-2 luma transform::
@@ -1824,9 +1823,8 @@ def point(self, lut, mode: str | None = None) -> Image:
18241823
class Example(Image.ImagePointHandler):
18251824
def point(self, data):
18261825
# Return result
1827-
:param mode: Output mode (default is same as input). In the
1828-
current version, this can only be used if the source image
1829-
has mode "L" or "P", and the output has mode "1" or the
1826+
:param mode: Output mode (default is same as input). This can only be used if
1827+
the source image has mode "L" or "P", and the output has mode "1" or the
18301828
source image mode is "I" and the output mode is "L".
18311829
:returns: An :py:class:`~PIL.Image.Image` object.
18321830
"""
@@ -3020,11 +3018,10 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
30203018
If you have an entire image file in a string, wrap it in a
30213019
:py:class:`~io.BytesIO` object, and use :py:func:`~PIL.Image.open` to load it.
30223020
3023-
In the current version, the default parameters used for the "raw" decoder
3024-
differs from that used for :py:func:`~PIL.Image.frombytes`. This is a
3025-
bug, and will probably be fixed in a future release. The current release
3026-
issues a warning if you do this; to disable the warning, you should provide
3027-
the full set of parameters. See below for details.
3021+
The default parameters used for the "raw" decoder differs from that used for
3022+
:py:func:`~PIL.Image.frombytes`. This is a bug, and will probably be fixed in a
3023+
future release. The current release issues a warning if you do this; to disable
3024+
the warning, you should provide the full set of parameters. See below for details.
30283025
30293026
:param mode: The image mode. See: :ref:`concept-modes`.
30303027
:param size: The image size.

src/PIL/ImageFilter.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ def filter(self, image):
3737

3838
class Kernel(BuiltinFilter):
3939
"""
40-
Create a convolution kernel. The current version only
41-
supports 3x3 and 5x5 integer and floating point kernels.
40+
Create a convolution kernel. This only supports 3x3 and 5x5 integer and floating
41+
point kernels.
4242
43-
In the current version, kernels can only be applied to
44-
"L" and "RGB" images.
43+
Kernels can only be applied to "L" and "RGB" images.
4544
4645
:param size: Kernel size, given as (width, height). In the current
4746
version, this must be (3,3) or (5,5).

src/_imagingcms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ [email protected]\n\
5252
5353
*/
5454

55-
/* known to-do list with current version:
55+
/* known to-do list:
5656
5757
Verify that PILmode->littleCMStype conversion in findLCMStype is correct for all
5858
PIL modes (it probably isn't for the more obscure ones)

0 commit comments

Comments
 (0)