Remove double space in import error message (#103458)

This commit is contained in:
Ned Batchelder 2023-04-14 03:45:14 -04:00 committed by GitHub
parent 9cc1960df6
commit 1aa376f946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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]