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

Replace slice and comparison with startswith/endswith #8761

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Feb 17, 2025

Avoids having to make sure the slice length is the same as the compared string.

@radarhere radarhere merged commit fe1cab6 into python-pillow:main Feb 18, 2025
55 checks passed
@hugovk hugovk deleted the slice-startswith branch February 18, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants