Commit 1d75382e authored by Brett Cannon's avatar Brett Cannon

Fix a misnaming of a method and an argument

parent 27bbfdbc
...@@ -714,7 +714,7 @@ find and load modules. ...@@ -714,7 +714,7 @@ find and load modules.
The path the finder will search in. 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`. Attempt to find the loader to handle *fullname* within :attr:`path`.
......
...@@ -1329,12 +1329,12 @@ class FileFinder: ...@@ -1329,12 +1329,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 """Initialize with the path to search on and a variable number of
2-tuples containing the loader and the file suffixes the loader 2-tuples containing the loader and the file suffixes the loader
recognizes.""" recognizes."""
loaders = [] loaders = []
for loader, suffixes in details: for loader, suffixes in loader_details:
loaders.extend((suffix, loader) for suffix in suffixes) loaders.extend((suffix, loader) for suffix in suffixes)
self._loaders = loaders self._loaders = loaders
# Base (directory) path # Base (directory) path
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment