Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Feb 15, 2025

The Python Image._wedge function is marked as "for debugging only".

The C wedge function does the same as the C linear_gradient function.

We call the Python Image._wedge() twice in tests. Both of these can be replaced with Image.linear_gradient(mode="L").

Also a bit of test code cleanup:

  • The global data variable isn't used in tests, let's remove it and save a redundant file load
  • Rename an open() helper so as not to shadow the builtin

@hugovk hugovk added the Cleanup label Feb 15, 2025
@radarhere radarhere merged commit f8566b9 into python-pillow:main Feb 15, 2025
54 checks passed
@hugovk hugovk deleted the rm-_wedge branch February 15, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants