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

Skip to content

Commit 0472217

Browse files
Issue #27138: Fix the doc comment for FileFinder.find_spec().
2 parents 5677aa7 + fc36e66 commit 0472217

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,8 @@ def _get_spec(self, loader_class, fullname, path, smsl, target):
12151215
submodule_search_locations=smsl)
12161216

12171217
def find_spec(self, fullname, target=None):
1218-
"""Try to find a loader for the specified module, or the namespace
1219-
package portions. Returns (loader, list-of-portions)."""
1218+
"""Try to find a spec for the specified module. Returns the
1219+
matching spec, or None if not found."""
12201220
is_namespace = False
12211221
tail_module = fullname.rpartition('.')[2]
12221222
try:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Core and Builtins
103103
- Issue #26718: super.__init__ no longer leaks memory if called multiple times.
104104
NOTE: A direct call of super.__init__ is not endorsed!
105105

106+
- Issue #27138: Fix the doc comment for FileFinder.find_spec().
107+
106108
- Issue #25339: PYTHONIOENCODING now has priority over locale in setting the
107109
error handler for stdin and stdout.
108110

0 commit comments

Comments
 (0)