mirror of
https://github.com/python/cpython.git
synced 2026-05-10 14:41:01 -04:00
dc6dd8ee87
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 443ca731d6)
Co-authored-by: Victor Stinner <vstinner@python.org>