summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-07-08 18:00:00 (GMT)
committerBrett Cannon <brett@python.org>2016-07-08 18:00:00 (GMT)
commitfdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6 (patch)
treef9a0574f99b8d6541266b0c61230a9052ee6d8ad /Python/import.c
parent15552c39e09426988d9ad0901a2aafc624e46e33 (diff)
downloadcpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.zip
cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.tar.gz
cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.tar.bz2
Issue #26896: Disambiguate uses of "importer" with "finder".
Thanks to Oren Milman for the patch.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c
index d791624..bdc7e4c 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -950,12 +950,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 *