Skip to content

Add warnings to deprecated CMS profile attributes - #3615

Merged
radarhere merged 14 commits into
python-pillow:masterfrom
hugovk:imagecms-deprecations
Apr 1, 2019
Merged

Add warnings to deprecated CMS profile attributes#3615
radarhere merged 14 commits into
python-pillow:masterfrom
hugovk:imagecms-deprecations

Conversation

@hugovk

@hugovk hugovk commented Jan 28, 2019

Copy link
Copy Markdown
Member

PR #1756 added features to ImageCMS and deprecated some others, released in 2016-04-01 on 3.2.0.

But they're quiet deprecations: only mentioned in docs.

Changes proposed in this pull request:

  • Raise DeprecationWarning when a deprecated ImageCms.CmsProfile attribute is called
  • Update ImageCms.py to use non-deprecated attributes internally

@hugovk hugovk added the Deprecation Feature that will be removed in the future label Jan 28, 2019
@hugovk

hugovk commented Mar 11, 2019

Copy link
Copy Markdown
Member Author

codecov/patch — 72.97% of diff hit (target 84.65%)

I think the patch coverage is below target because of the "Convert tabs to spaces" commit, but overall coverage is fine.

Comment thread src/_imagingcms.c Outdated
Co-Authored-By: hugovk <hugovk@users.noreply.github.com>
Comment thread src/PIL/ImageCms.py Outdated
radarhere and others added 2 commits March 27, 2019 12:02
@radarhere
radarhere merged commit f707aff into python-pillow:master Apr 1, 2019
@hugovk
hugovk deleted the imagecms-deprecations branch April 1, 2019 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deprecation Feature that will be removed in the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants