mirror of
https://github.com/python/cpython.git
synced 2026-05-09 14:11:28 -04:00
443ca731d6
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.