Skip to content

[3.10] gh-93353: Fix importlib.resources._tempfile() finalizer (GH-93377) - #93780

Merged
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-443ca73-3.10
Jun 13, 2022
Merged

miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-443ca73-3.10

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

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.
(cherry picked from commit 443ca73)

Co-authored-by: Victor Stinner vstinner@python.org

…GH-93377)

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.
(cherry picked from commit 443ca73)

Co-authored-by: Victor Stinner <vstinner@python.org>
@miss-islington

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit f9585e2 into python:3.10 Jun 13, 2022
@miss-islington
miss-islington deleted the backport-443ca73-3.10 branch June 13, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants