Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d75382

Browse files
committed
Fix a misnaming of a method and an argument
1 parent 27bbfdb commit 1d75382

3 files changed

Lines changed: 1074 additions & 1074 deletions

File tree

Doc/library/importlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ find and load modules.
714714

715715
The path the finder will search in.
716716

717-
.. method:: find_module(fullname)
717+
.. method:: find_loader(fullname)
718718

719719
Attempt to find the loader to handle *fullname* within :attr:`path`.
720720

Lib/importlib/_bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,12 +1329,12 @@ class FileFinder:
13291329
13301330
"""
13311331

1332-
def __init__(self, path, *details):
1332+
def __init__(self, path, *loader_details):
13331333
"""Initialize with the path to search on and a variable number of
13341334
2-tuples containing the loader and the file suffixes the loader
13351335
recognizes."""
13361336
loaders = []
1337-
for loader, suffixes in details:
1337+
for loader, suffixes in loader_details:
13381338
loaders.extend((suffix, loader) for suffix in suffixes)
13391339
self._loaders = loaders
13401340
# Base (directory) path

0 commit comments

Comments
 (0)