]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove double space in import error message (#103458)
authorNed Batchelder <ned@nedbatchelder.com>
Fri, 14 Apr 2023 07:45:14 +0000 (03:45 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2023 07:45:14 +0000 (00:45 -0700)
Lib/importlib/_bootstrap.py

index 22fa2469964ab3e3fe29b1eee7257ae4135d66a7..e4fcaa61e6de2919e0ea3a9a45e5932e39b98ef8 100644 (file)
@@ -1260,7 +1260,7 @@ def _find_and_load_unlocked(name, import_):
         try:
             path = parent_module.__path__
         except AttributeError:
-            msg = f'{_ERR_MSG_PREFIX} {name!r}; {parent!r} is not a package'
+            msg = f'{_ERR_MSG_PREFIX}{name!r}; {parent!r} is not a package'
             raise ModuleNotFoundError(msg, name=name) from None
         parent_spec = parent_module.__spec__
         child = name.rpartition('.')[2]