Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove debug Image._wedge #8755

Merged
merged 3 commits into from
Feb 15, 2025
Merged

Remove debug Image._wedge #8755

merged 3 commits into from
Feb 15, 2025

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