Skip to content

Conversation

@radarhere
Copy link
Member

In Image.py, we have

Pillow/src/PIL/Image.py

Lines 159 to 160 in 11c536b

# resampling filters (also defined in Imaging.h)
NEAREST = NONE = 0

Pillow/src/PIL/Image.py

Lines 170 to 171 in 11c536b

# dithers
NEAREST = NONE = 0

and

Pillow/src/PIL/Image.py

Lines 139 to 141 in 11c536b

# Constants
NONE = 0

I can't see any use for the last one, so this PR suggests removing it. This does not change any functionality, since the other two code blocks still define Image.NONE.

@hugovk hugovk merged commit 282d825 into python-pillow:main Dec 27, 2021
@radarhere radarhere deleted the none branch December 27, 2021 21:02
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