@@ -45,7 +45,7 @@ def read_code(stream):
4545
4646
4747def walk_packages (path = None , prefix = '' , onerror = None ):
48- """Yields (module_loader , name, ispkg) for all modules recursively
48+ """Yields (module_finder , name, ispkg) for all modules recursively
4949 on path, or, if path is None, all accessible modules.
5050
5151 'path' should be either None or a list of paths to look for
@@ -102,7 +102,7 @@ def seen(p, m={}):
102102
103103
104104def iter_modules (path = None , prefix = '' ):
105- """Yields (module_loader , name, ispkg) for all submodules on path,
105+ """Yields (module_finder , name, ispkg) for all submodules on path,
106106 or, if path is None, all top-level modules on sys.path.
107107
108108 'path' should be either None or a list of paths to look for
@@ -184,10 +184,10 @@ def _import_imp():
184184 imp = importlib .import_module ('imp' )
185185
186186class ImpImporter :
187- """PEP 302 Importer that wraps Python's "classic" import algorithm
187+ """PEP 302 Finder that wraps Python's "classic" import algorithm
188188
189- ImpImporter(dirname) produces a PEP 302 importer that searches that
190- directory. ImpImporter(None) produces a PEP 302 importer that searches
189+ ImpImporter(dirname) produces a PEP 302 finder that searches that
190+ directory. ImpImporter(None) produces a PEP 302 finder that searches
191191 the current sys.path, plus any modules that are frozen or built-in.
192192
193193 Note that ImpImporter does not currently support being used by placement
@@ -395,9 +395,9 @@ def iter_zipimport_modules(importer, prefix=''):
395395
396396
397397def get_importer (path_item ):
398- """Retrieve a PEP 302 importer for the given path item
398+ """Retrieve a PEP 302 finder for the given path item
399399
400- The returned importer is cached in sys.path_importer_cache
400+ The returned finder is cached in sys.path_importer_cache
401401 if it was newly created by a path hook.
402402
403403 The cache (or part of it) can be cleared manually if a
@@ -419,16 +419,16 @@ def get_importer(path_item):
419419
420420
421421def iter_importers (fullname = "" ):
422- """Yield PEP 302 importers for the given module name
422+ """Yield PEP 302 finders for the given module name
423423
424- If fullname contains a '.', the importers will be for the package
424+ If fullname contains a '.', the finders will be for the package
425425 containing fullname, otherwise they will be all registered top level
426- importers (i.e. those on both sys.meta_path and sys.path_hooks).
426+ finders (i.e. those on both sys.meta_path and sys.path_hooks).
427427
428428 If the named module is in a package, that package is imported as a side
429429 effect of invoking this function.
430430
431- If no module name is specified, all top level importers are produced.
431+ If no module name is specified, all top level finders are produced.
432432 """
433433 if fullname .startswith ('.' ):
434434 msg = "Relative module name {!r} not supported" .format (fullname )
0 commit comments