Skip to content

Remove unnecessary code in WmfHandler#9411

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:wmf
Jan 30, 2026
Merged

Remove unnecessary code in WmfHandler#9411
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:wmf

Conversation

@radarhere
Copy link
Copy Markdown
Member

After the mode is set in WmfStubImageFile._open(),

self._mode = "RGB"

there is no need to set it again in WmfHandler.open()

im._mode = "RGB"

@hugovk hugovk changed the title Removed unnecessary code Remove unnecessary code in WmfHandler Jan 30, 2026
@hugovk hugovk merged commit fc4dbc3 into python-pillow:main Jan 30, 2026
56 checks passed
@radarhere radarhere deleted the wmf branch January 30, 2026 23:52
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