Skip to content

Always call StubHandler open() when opening StubImageFile#9412

Open
radarhere wants to merge 1 commit intopython-pillow:mainfrom
radarhere:stub
Open

Always call StubHandler open() when opening StubImageFile#9412
radarhere wants to merge 1 commit intopython-pillow:mainfrom
radarhere:stub

Conversation

@radarhere
Copy link
Member

In all of our subclasses of StubImageFile, _open ends with the following code, calling StubHandler.open()

loader = self._load()
if loader:
loader.open(self)

This PR suggests moving that code out of the subclasses, and instead forcing it to be called when every StubImageFile is opened.

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.

1 participant