]> granicus.if.org Git - python/commitdiff
bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Jun 2018 06:21:43 +0000 (23:21 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Jun 2018 06:21:43 +0000 (23:21 -0700)
(cherry picked from commit fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/importlib/util.py

index 9d0a90d29730fd5fb2081b52ee0df85d348b53fe..201e0f4cb89d185b477ce83acac0682467387cc5 100644 (file)
@@ -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