From 8383b729823e8e30c2a50471b39f836208463043 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 13 Jul 2025 15:54:54 +1000 Subject: [PATCH] Removed replacement --- docs/deprecations.rst | 7 +------ src/PIL/ImageCms.py | 9 +-------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/deprecations.rst b/docs/deprecations.rst index 99496fa9e..b9fd01345 100644 --- a/docs/deprecations.rst +++ b/docs/deprecations.rst @@ -66,12 +66,7 @@ ImageCms.ImageCmsProfile.product_name and .product_info ``ImageCms.ImageCmsProfile.product_name`` and the corresponding ``.product_info`` attributes have been deprecated, and will be removed in -Pillow 13 (2026-10-15). These attributes can be accessed on the ``.profile`` -attribute of ``ImageCmsProfile`` instead. - -Note that ``.product_name`` and ``.product_info`` have been set to ``None`` on -``ImageCmsProfile`` since Pillow 2.3.0 (2014-01-01), so any working code that -makes use of this data will already access it on ``.profile``. +Pillow 13 (2026-10-15). They have been set to ``None`` since Pillow 2.3.0. Removed features ---------------- diff --git a/src/PIL/ImageCms.py b/src/PIL/ImageCms.py index 143e04bf5..643cfe179 100644 --- a/src/PIL/ImageCms.py +++ b/src/PIL/ImageCms.py @@ -260,14 +260,7 @@ class ImageCmsProfile: def __getattr__(self, name: str) -> Any: if name in ("product_name", "product_info"): - deprecate( - f"ImageCms.ImageCmsProfile.{name}", - 13, - action=( - f"Use ImageCms.ImageCmsProfile.profile.{name} instead. " - f"Note that {name} has been set to 'None' since Pillow 2.3.0." - ), - ) + deprecate(f"ImageCms.ImageCmsProfile.{name}", 13) return None msg = f"'{self.__class__.__name__}' object has no attribute '{name}'" raise AttributeError(msg)