Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Tests/test_imagecms.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,5 @@ def test_deprecation() -> None:
profile.product_name
with pytest.warns(DeprecationWarning):
profile.product_info
with pytest.warns(DeprecationWarning):
profile._set(p)
with pytest.raises(AttributeError):
profile.this_attribute_does_not_exist
9 changes: 0 additions & 9 deletions docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,6 @@ Image.Image.get_child_images()
method uses an image's file pointer, and so child images could only be retrieved from
an :py:class:`PIL.ImageFile.ImageFile` instance.

ImageCms.ImageCmsProfile._set
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. deprecated:: 11.3.0

``ImageCms.ImageCmsProfile._set()`` has been deprecated, and will be removed in
Pillow 13 (2026-10-15). You should construct a new ``ImageCmsProfile`` instance
instead.

ImageCms.ImageCmsProfile.product_name and .product_info
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
9 changes: 0 additions & 9 deletions src/PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,6 @@ def __getattr__(self, attr: str) -> Any:
msg = f"'{self.__class__.__name__}' has no attribute '{attr}'"
raise AttributeError(msg)

def _set(self, profile: core.CmsProfile, filename: str | None = None) -> None:
deprecate(
"ImageCmsProfile._set",
13,
action="Set the 'profile' and 'filename' attributes directly instead.",
)
self.profile = profile
self.filename = filename

def tobytes(self) -> bytes:
"""
Returns the profile in a format suitable for embedding in
Expand Down
Loading