summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2016-05-27 18:56:41 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2016-05-27 18:56:41 (GMT)
commit0472217d433634cb7180a37045744ad4a570d500 (patch)
tree079465cc319fe79aec6cc850b0b8e9fbfca801d3 /Lib/importlib
parent5677aa75f058cc1a16424d082acb067b00b9510e (diff)
parentfc36e66af46957a65b12ab0087027727f8555aed (diff)
downloadcpython-0472217d433634cb7180a37045744ad4a570d500.zip
cpython-0472217d433634cb7180a37045744ad4a570d500.tar.gz
cpython-0472217d433634cb7180a37045744ad4a570d500.tar.bz2
Issue #27138: Fix the doc comment for FileFinder.find_spec().
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 1388618..034b783 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -1215,8 +1215,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: