summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-13 17:52:50 (GMT)
committerGitHub <noreply@github.com>2022-06-13 17:52:50 (GMT)
commitf9585e2adc36fb2886f96ef86a5aa14215fc1151 (patch)
treec9cf13b54d8a4f44b03015893c911d6382225024 /Lib/posixpath.py
parent58277de8e651df287ceae053eeb321c0f8406a1b (diff)
downloadcpython-f9585e2adc36fb2886f96ef86a5aa14215fc1151.zip
cpython-f9585e2adc36fb2886f96ef86a5aa14215fc1151.tar.gz
cpython-f9585e2adc36fb2886f96ef86a5aa14215fc1151.tar.bz2
gh-93353: Fix importlib.resources._tempfile() finalizer (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 443ca731d6b1267fe2f92985e0490460c95e44a8) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/posixpath.py')
0 files changed, 0 insertions, 0 deletions