Skip to content

Replace slice and comparison with startswith/endswith#8761

Merged
radarhere merged 2 commits intopython-pillow:mainfrom
hugovk:slice-startswith
Feb 18, 2025
Merged

Replace slice and comparison with startswith/endswith#8761
radarhere merged 2 commits intopython-pillow:mainfrom
hugovk:slice-startswith

Conversation

@hugovk
Copy link
Copy Markdown
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
@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