mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix a misnaming of a method and an argument
This commit is contained in:
parent
27bbfdbc4c
commit
1d75382e81
3 changed files with 1086 additions and 1086 deletions
|
@ -714,7 +714,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`.
|
||||
|
||||
|
|
|
@ -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
|
||||
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
|
||||
|
|
2166
Python/importlib.h
2166
Python/importlib.h
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue