summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-09-06 00:11:51 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-09-06 00:11:51 (GMT)
commit4672060d86722e7daf946220812613938c54a5eb (patch)
tree17414b248c39d36414a129599f13b079dbcd8cad /Lib
parent6d999803a07ef5e01f0048d4f276e9cf4401a23d (diff)
downloadcpython-4672060d86722e7daf946220812613938c54a5eb.zip
cpython-4672060d86722e7daf946220812613938c54a5eb.tar.gz
cpython-4672060d86722e7daf946220812613938c54a5eb.tar.bz2
Update pkgutil docs to reference appropriate finder and loader object documentation.
Initial patch contributed by Jaysinh shukla.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pkgutil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 97726a9..0685378 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -395,7 +395,7 @@ except ImportError:
def get_importer(path_item):
- """Retrieve a PEP 302 importer for the given path item
+ """Retrieve a finder for the given path item
The returned importer is cached in sys.path_importer_cache
if it was newly created by a path hook.
@@ -419,7 +419,7 @@ def get_importer(path_item):
def iter_importers(fullname=""):
- """Yield PEP 302 importers for the given module name
+ """Yield finders for the given module name
If fullname contains a '.', the importers will be for the package
containing fullname, otherwise they will be all registered top level
@@ -448,7 +448,7 @@ def iter_importers(fullname=""):
def get_loader(module_or_name):
- """Get a PEP 302 "loader" object for module_or_name
+ """Get a "loader" object for module_or_name
Returns None if the module cannot be found or imported.
If the named module is not already imported, its containing package
@@ -472,7 +472,7 @@ def get_loader(module_or_name):
def find_loader(fullname):
- """Find a PEP 302 "loader" object for fullname
+ """Find a "loader" object for fullname
This is a backwards compatibility wrapper around
importlib.util.find_spec that converts most failures to ImportError