diff options
author | Brett Cannon <brett@python.org> | 2013-06-16 23:09:46 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-16 23:09:46 (GMT) |
commit | 390f6c1bf7b539161b9f44f2b657a2aa422fdc95 (patch) | |
tree | 005da99b691f8b52e7d2487eea9cc49439a17432 | |
parent | f24fecd4ac9050799d02a8354b7acfa12b65b1d3 (diff) | |
parent | a269d821a11f2f84e6a211818ac1fdd76e0ab647 (diff) | |
download | cpython-390f6c1bf7b539161b9f44f2b657a2aa422fdc95.zip cpython-390f6c1bf7b539161b9f44f2b657a2aa422fdc95.tar.gz cpython-390f6c1bf7b539161b9f44f2b657a2aa422fdc95.tar.bz2 |
Merge doc/argument name fix
-rw-r--r-- | Doc/library/importlib.rst | 2 | ||||
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index ae0fe6b..0c8b8e8 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -751,7 +751,7 @@ find and load modules. The path the finder will search in. - .. method:: find_module(fullname) + .. method:: find_loader(fullname) Attempt to find the loader to handle *fullname* within :attr:`path`. diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 37fe083..67304a3 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -1361,12 +1361,12 @@ class FileFinder: """ - def __init__(self, path, *details): + def __init__(self, path, *loader_details): """Initialize with the path to search on and a variable number of 2-tuples containing the loader and the file suffixes the loader recognizes.""" loaders = [] - for loader, suffixes in details: + for loader, suffixes in loader_details: loaders.extend((suffix, loader) for suffix in suffixes) self._loaders = loaders # Base (directory) path |