mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-16 10:14:47 +03:00
Removed replacement
This commit is contained in:
parent
c3dc5b9448
commit
8383b72982
|
@ -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
|
||||
----------------
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user