Removed replacement

This commit is contained in:
Andrew Murray 2025-07-13 15:54:54 +10:00
parent c3dc5b9448
commit 8383b72982
2 changed files with 2 additions and 14 deletions

View File

@ -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
----------------

View File

@ -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)