From: Ned Batchelder Date: Fri, 14 Apr 2023 07:45:14 +0000 (-0400) Subject: Remove double space in import error message (#103458) X-Git-Tag: v3.12.0b1~537 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aa376f946ef68ba46937019a424d925bf5b9611;p=thirdparty%2FPython%2Fcpython.git Remove double space in import error message (#103458) --- diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 22fa2469964a..e4fcaa61e6de 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -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]