summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-09-07 07:52:20 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-09-07 07:52:20 (GMT)
commit32d374215a514915eca892e5c58a61e9494f37af (patch)
treea5eb60bfa6e5a1f28bedd4042460a22fce720fca /Python
parente848cd7605a7891378ef1463e933939aa253df71 (diff)
downloadcpython-32d374215a514915eca892e5c58a61e9494f37af.zip
cpython-32d374215a514915eca892e5c58a61e9494f37af.tar.gz
cpython-32d374215a514915eca892e5c58a61e9494f37af.tar.bz2
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c
index 7018d59..7e947ec 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -960,12 +960,13 @@ is_builtin(PyObject *name)
}
-/* Return an importer object for a sys.path/pkg.__path__ item 'p',
+/* Return a finder object for a sys.path/pkg.__path__ item 'p',
possibly by fetching it from the path_importer_cache dict. If it
wasn't yet cached, traverse path_hooks until a hook is found
that can handle the path item. Return None if no hook could;
- this tells our caller it should fall back to the builtin
- import mechanism. Cache the result in path_importer_cache.
+ this tells our caller that the path based finder could not find
+ a finder for this path item. Cache the result in
+ path_importer_cache.
Returns a borrowed reference. */
static PyObject *