[Python-checkins] bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)

Miss Islington (bot) webhook-mailer at python.org
Thu Jun 7 02:21:46 EDT 2018


https://github.com/python/cpython/commit/d2a2af0df4562f4adb0337a80b27d69167a60c32
commit: d2a2af0df4562f4adb0337a80b27d69167a60c32
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-06-06T23:21:43-07:00
summary:

bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)

(cherry picked from commit fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14)

Co-authored-by: Zackery Spytz <zspytz at gmail.com>

files:
M Lib/importlib/util.py

diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py
index 9d0a90d29730..201e0f4cb89d 100644
--- a/Lib/importlib/util.py
+++ b/Lib/importlib/util.py
@@ -96,7 +96,7 @@ def find_spec(name, package=None):
                 parent_path = parent.__path__
             except AttributeError as e:
                 raise ModuleNotFoundError(
-                    f"__path__ attribute not found on {parent_name!r}"
+                    f"__path__ attribute not found on {parent_name!r} "
                     f"while trying to find {fullname!r}", name=fullname) from e
         else:
             parent_path = None



More information about the Python-checkins mailing list