]> granicus.if.org Git - python/commitdiff
[merge from 3.5] - Update pkgutil docs to reference appropriate finder and loader...
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 6 Sep 2016 00:16:06 +0000 (17:16 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 6 Sep 2016 00:16:06 +0000 (17:16 -0700)
Initial patch contributed by Jaysinh shukla.

1  2 
Lib/pkgutil.py

diff --cc Lib/pkgutil.py
index 15b3ae1161207bca43b7deca3e27b9d1dc201eed,0685378c44fbcfaafcf2710f272c3dedc8c50e3a..7fc356c9ae8d2965c6865e1d48909f6724035c47
@@@ -395,9 -395,9 +395,9 @@@ except ImportError
  
  
  def get_importer(path_item):
-     """Retrieve a PEP 302 finder for the given path item
+     """Retrieve a finder for the given path item
  
 -    The returned importer is cached in sys.path_importer_cache
 +    The returned finder is cached in sys.path_importer_cache
      if it was newly created by a path hook.
  
      The cache (or part of it) can be cleared manually if a
  
  
  def iter_importers(fullname=""):
-     """Yield PEP 302 finders for the given module name
+     """Yield finders for the given module name
  
 -    If fullname contains a '.', the importers will be for the package
 +    If fullname contains a '.', the finders will be for the package
      containing fullname, otherwise they will be all registered top level
 -    importers (i.e. those on both sys.meta_path and sys.path_hooks).
 +    finders (i.e. those on both sys.meta_path and sys.path_hooks).
  
      If the named module is in a package, that package is imported as a side
      effect of invoking this function.