diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-13 17:49:48 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-13 17:49:48 (GMT) |
| commit | dc6dd8ee873ed96027d30c8a2e96518657d46241 (patch) | |
| tree | 8f5be32449584b2de02020bbb82cb9cbdf50c146 /Python/getopt.c | |
| parent | 3d1c080591910c9c1ee80e5465ce7c91b67c907d (diff) | |
| download | cpython-dc6dd8ee873ed96027d30c8a2e96518657d46241.zip cpython-dc6dd8ee873ed96027d30c8a2e96518657d46241.tar.gz cpython-dc6dd8ee873ed96027d30c8a2e96518657d46241.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 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions
