changeset: 101527:ac9c1aeecfb4 branch: 3.5 parent: 101524:ca49614989dd user: Eric Snow date: Fri May 27 12:36:28 2016 -0600 files: Lib/importlib/_bootstrap_external.py Misc/NEWS description: Issue #27138: Fix the doc comment for FileFinder.find_spec(). diff -r ca49614989dd -r ac9c1aeecfb4 Lib/importlib/_bootstrap_external.py --- a/Lib/importlib/_bootstrap_external.py Fri May 27 11:20:21 2016 +0000 +++ b/Lib/importlib/_bootstrap_external.py Fri May 27 12:36:28 2016 -0600 @@ -1213,8 +1213,8 @@ 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: diff -r ca49614989dd -r ac9c1aeecfb4 Misc/NEWS --- a/Misc/NEWS Fri May 27 11:20:21 2016 +0000 +++ b/Misc/NEWS Fri May 27 12:36:28 2016 -0600 @@ -61,6 +61,8 @@ (*) 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