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

Various _accept changes #6092

Merged
merged 7 commits into from Mar 5, 2022
Merged

Various _accept changes #6092

merged 7 commits into from Mar 5, 2022

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Feb 26, 2022

  • Do not read data until necessary in GbrImagePlugin
  • Raise SyntaxError if data is not as expected in XbmImagePlugin
  • Moved FLI flags check into _accept
  • Make code clearer by matching _accept condition.
  • Use _accept in _open for DDS and FLEX
  • Simplify code by using _accept, instead of writing out the _accept condition a second time, in ICNS and TIFF

src/PIL/FtexImagePlugin.py Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@hugovk hugovk merged commit 180c89f into python-pillow:main Mar 5, 2022
@radarhere radarhere deleted the accept branch March 6, 2022 00:51
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.

None yet

2 participants