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

Ned Deily webhook-mailer at python.org
Thu Jun 7 02:02:35 EDT 2018


https://github.com/python/cpython/commit/fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14
commit: fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: Ned Deily <nad at python.org>
date: 2018-06-07T02:02:24-04:00
summary:

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

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