From aa93642a35ed570ba91a80c583df2c8a383686d6 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 27 Apr 2012 15:30:58 -0400 Subject: Issue #14605: Use None in sys.path_importer_cache to represent no finder instead of using some (now non-existent) implicit finder. --- Python/import.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index 103e7de439..a47e9881b9 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1186,15 +1186,7 @@ get_path_importer(PyObject *path_importer_cache, PyObject *path_hooks, PyErr_Clear(); } if (importer == NULL) { - importer = PyObject_CallFunctionObjArgs( - (PyObject *)&PyNullImporter_Type, p, NULL - ); - if (importer == NULL) { - if (PyErr_ExceptionMatches(PyExc_ImportError)) { - PyErr_Clear(); - return Py_None; - } - } + return Py_None; } if (importer != NULL) { int err = PyDict_SetItem(path_importer_cache, p, importer); -- cgit v1.2.1