Skip to content

Updated GitHub Actions to ubuntu-latest#139

Merged
homm merged 3 commits intopython-pillow:mainfrom
radarhere:github_actions
Sep 4, 2023
Merged

Updated GitHub Actions to ubuntu-latest#139
homm merged 3 commits intopython-pillow:mainfrom
radarhere:github_actions

Conversation

@radarhere
Copy link
Member

from .base import BaseTestCase, root


Image.LANCZOS = Image.ANTIALIAS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pillow-perf intended to work with all versions of Pillow, not only the latest, and even with versions before Image.LANCZOS introduced.

if hasattr(Image, "ANTIALIAS"):
    Image.LANCZOS = Image.ANTIALIAS

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have thought this line isn't needed, regardless of the Pillow version, because neither LANCZOS or ANTIALIAS is used in the rest of this file?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@homm homm merged commit b5ab580 into python-pillow:main Sep 4, 2023
@radarhere radarhere deleted the github_actions branch September 4, 2023 10:43
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