diff Python/pythonrun.c @ 76566:57d558f1904d

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.
author Brett Cannon <brett@python.org>
date Wed, 25 Apr 2012 20:54:04 -0400
parents d777f854a66e
children eb68502731dd
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Apr 25 20:49:19 2012 -0400
+++ b/Python/pythonrun.c	Wed Apr 25 20:54:04 2012 -0400
@@ -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");