Skip to content

Commit 8383b72

Browse files
committed
Removed replacement
1 parent c3dc5b9 commit 8383b72

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

docs/deprecations.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ ImageCms.ImageCmsProfile.product_name and .product_info
6666

6767
``ImageCms.ImageCmsProfile.product_name`` and the corresponding
6868
``.product_info`` attributes have been deprecated, and will be removed in
69-
Pillow 13 (2026-10-15). These attributes can be accessed on the ``.profile``
70-
attribute of ``ImageCmsProfile`` instead.
71-
72-
Note that ``.product_name`` and ``.product_info`` have been set to ``None`` on
73-
``ImageCmsProfile`` since Pillow 2.3.0 (2014-01-01), so any working code that
74-
makes use of this data will already access it on ``.profile``.
69+
Pillow 13 (2026-10-15). They have been set to ``None`` since Pillow 2.3.0.
7570

7671
Removed features
7772
----------------

src/PIL/ImageCms.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,7 @@ def __init__(self, profile: str | SupportsRead[bytes] | core.CmsProfile) -> None
260260

261261
def __getattr__(self, name: str) -> Any:
262262
if name in ("product_name", "product_info"):
263-
deprecate(
264-
f"ImageCms.ImageCmsProfile.{name}",
265-
13,
266-
action=(
267-
f"Use ImageCms.ImageCmsProfile.profile.{name} instead. "
268-
f"Note that {name} has been set to 'None' since Pillow 2.3.0."
269-
),
270-
)
263+
deprecate(f"ImageCms.ImageCmsProfile.{name}", 13)
271264
return None
272265
msg = f"'{self.__class__.__name__}' object has no attribute '{name}'"
273266
raise AttributeError(msg)

0 commit comments

Comments
 (0)