diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-04-14 07:45:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 07:45:14 (GMT) |
commit | 1aa376f946ef68ba46937019a424d925bf5b9611 (patch) | |
tree | ad040df0332ad47046599ddc651ed67b890f805d /Lib/importlib/_bootstrap.py | |
parent | 9cc1960df65e4bdcfd127f1fab1834e91fd13e52 (diff) | |
download | cpython-1aa376f946ef68ba46937019a424d925bf5b9611.zip cpython-1aa376f946ef68ba46937019a424d925bf5b9611.tar.gz cpython-1aa376f946ef68ba46937019a424d925bf5b9611.tar.bz2 |
Remove double space in import error message (#103458)
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 22fa246..e4fcaa6 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] |