]> granicus.if.org Git - python/commit
[3.7] bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidati...
authorBrett Cannon <brettcannon@users.noreply.github.com>
Sat, 7 Apr 2018 00:02:18 +0000 (17:02 -0700)
committerGitHub <noreply@github.com>
Sat, 7 Apr 2018 00:02:18 +0000 (17:02 -0700)
commita09bb87c1eebb07b01b8105cf536704893aec565
tree1b2003bef18312f6230a13e93acec7a5047d19a4
parent3c193cf8afce525b1283986f113de0e16f23e115
[3.7] bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402) (GH-6403)

An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense.
(cherry picked from commit 9e2be60634914f23db2ae5624e4acc9335bf5fea)
Doc/library/importlib.rst
Doc/whatsnew/3.7.rst
Lib/importlib/_bootstrap_external.py
Lib/test/test_importlib/import_/test_path.py
Lib/test/test_importlib/test_api.py
Misc/NEWS.d/next/Library/2018-04-06-14-56-26.bpo-33169.ByhDqb.rst [new file with mode: 0644]
Python/importlib_external.h