Skip to content

gh-93353: Fix importlib.resources._tempfile() finalizer#93377

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:resources_finalizer
Jun 13, 2022
Merged

gh-93353: Fix importlib.resources._tempfile() finalizer#93377
vstinner merged 1 commit intopython:mainfrom
vstinner:resources_finalizer

Conversation

@vstinner
Copy link
Member

Fix the importlib.resources.as_file() context manager to remove the
temporary file if destroyed late during Python finalization: keep a
local reference to the os.remove() function. Patch by Victor Stinner.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants