Commit 0472217d authored by Eric Snow's avatar Eric Snow

Issue #27138: Fix the doc comment for FileFinder.find_spec().

parents 5677aa75 fc36e66a
...@@ -1215,8 +1215,8 @@ class FileFinder: ...@@ -1215,8 +1215,8 @@ class FileFinder:
submodule_search_locations=smsl) submodule_search_locations=smsl)
def find_spec(self, fullname, target=None): def find_spec(self, fullname, target=None):
"""Try to find a loader for the specified module, or the namespace """Try to find a spec for the specified module. Returns the
package portions. Returns (loader, list-of-portions).""" matching spec, or None if not found."""
is_namespace = False is_namespace = False
tail_module = fullname.rpartition('.')[2] tail_module = fullname.rpartition('.')[2]
try: try:
......
...@@ -103,6 +103,8 @@ Core and Builtins ...@@ -103,6 +103,8 @@ Core and Builtins
- Issue #26718: super.__init__ no longer leaks memory if called multiple times. - Issue #26718: super.__init__ no longer leaks memory if called multiple times.
NOTE: A direct call of super.__init__ is not endorsed! NOTE: A direct call of super.__init__ is not endorsed!
- Issue #27138: Fix the doc comment for FileFinder.find_spec().
- Issue #25339: PYTHONIOENCODING now has priority over locale in setting the - Issue #25339: PYTHONIOENCODING now has priority over locale in setting the
error handler for stdin and stdout. error handler for stdin and stdout.
......
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