]> granicus.if.org Git - python/commitdiff
Issue #27138: Fix the doc comment for FileFinder.find_spec().
authorEric Snow <ericsnowcurrently@gmail.com>
Fri, 27 May 2016 18:36:28 +0000 (12:36 -0600)
committerEric Snow <ericsnowcurrently@gmail.com>
Fri, 27 May 2016 18:36:28 +0000 (12:36 -0600)
Lib/importlib/_bootstrap_external.py
Misc/NEWS

index ef13fd2f477bf6179e69b212ae1492541a1532b0..97888286880a05d91d647c90944e54063b7761e5 100644 (file)
@@ -1213,8 +1213,8 @@ class FileFinder:
                                        submodule_search_locations=smsl)
 
     def find_spec(self, fullname, target=None):
-        """Try to find a loader for the specified module, or the namespace
-        package portions. Returns (loader, list-of-portions)."""
+        """Try to find a spec for the specified module.  Returns the
+        matching spec, or None if not found."""
         is_namespace = False
         tail_module = fullname.rpartition('.')[2]
         try:
index b3795fd94342c23c96c9e1d14d325eb7624f9093..1d1cca8d704ad21ff7a93af509ede8a9313217c4 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -61,6 +61,8 @@ Core and Builtins
   (*) unpacking in function calls.  Based on patch by Hagen Fürstenau and
   Daniel Urban.
 
+- Issue #27138: Fix the doc comment for FileFinder.find_spec().
+
 - Issue #26154: Add a new private _PyThreadState_UncheckedGet() function to get
   the current Python thread state, but don't issue a fatal error if it is NULL.
   This new function must be used instead of accessing directly the