Issue #14605: Make explicit the entries on sys.path_hooks that used to
be implicit.
Added a warning for when sys.path_hooks is found to be empty. Also
changed the meaning of None in sys.path_importer_cache to represent
trying sys.path_hooks again (an interpretation of previous semantics).
Also added a warning for when None was found.
The long-term goal is for None in sys.path_importer_cache to represent
the same as imp.NullImporter: no finder found for that sys.path entry.
diff --git a/Python/importlib.h b/Python/importlib.h
index 991334e..7a83c02 100644
--- a/Python/importlib.h
+++ b/Python/importlib.h
Binary files differ
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 44a85bb..9e20e4a 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -229,7 +229,7 @@
Py_FatalError("Py_Initialize: can't save _imp to sys.modules");
}
- value = PyObject_CallMethod(importlib, "_setup", "OO", sysmod, impmod);
+ value = PyObject_CallMethod(importlib, "_install", "OO", sysmod, impmod);
if (value == NULL) {
PyErr_Print();
Py_FatalError("Py_Initialize: importlib install failed");