summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2021-09-17 23:48:17 (GMT)
committerGitHub <noreply@github.com>2021-09-17 23:48:17 (GMT)
commit209b7035f714dcc41df054b0b023e0b955d7e1a2 (patch)
tree41c4c89c7bb103a6858169c72ef79a559bb6260b /Misc/NEWS.d
parentf4813388b4506b2fafb0089848c5b11cd503758c (diff)
downloadcpython-209b7035f714dcc41df054b0b023e0b955d7e1a2.zip
cpython-209b7035f714dcc41df054b0b023e0b955d7e1a2.tar.gz
cpython-209b7035f714dcc41df054b0b023e0b955d7e1a2.tar.bz2
bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435)
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2021-09-17-15-58-53.bpo-45183.Vv_vch.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-17-15-58-53.bpo-45183.Vv_vch.rst b/Misc/NEWS.d/next/Library/2021-09-17-15-58-53.bpo-45183.Vv_vch.rst
new file mode 100644
index 0000000..f3194b3
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-09-17-15-58-53.bpo-45183.Vv_vch.rst
@@ -0,0 +1,3 @@
+Have zipimport.zipimporter.find_spec() not raise an exception when the underlying zip
+file has been deleted and the internal cache has been reset via
+invalidate_cache().