diff options
author | Brett Cannon <brettcannon@users.noreply.github.com> | 2018-04-06 23:10:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 23:10:18 (GMT) |
commit | 9e2be60634914f23db2ae5624e4acc9335bf5fea (patch) | |
tree | 9b1613b2c8bdad0fd942222c07a72e90e8dd509e /Misc | |
parent | 3a9ccee0e5dbf7d67f5ab79f6095755969db117c (diff) | |
download | cpython-9e2be60634914f23db2ae5624e4acc9335bf5fea.zip cpython-9e2be60634914f23db2ae5624e4acc9335bf5fea.tar.gz cpython-9e2be60634914f23db2ae5624e4acc9335bf5fea.tar.bz2 |
bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402)
An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-04-06-14-56-26.bpo-33169.ByhDqb.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-04-06-14-56-26.bpo-33169.ByhDqb.rst b/Misc/NEWS.d/next/Library/2018-04-06-14-56-26.bpo-33169.ByhDqb.rst new file mode 100644 index 0000000..b5bacfc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-04-06-14-56-26.bpo-33169.ByhDqb.rst @@ -0,0 +1,2 @@ +Delete entries of ``None`` in :data:`sys.path_importer_cache` when +:meth:`importlib.machinery.invalidate_caches` is called. |