mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove double space in import error message (#103458)
This commit is contained in:
parent
9cc1960df6
commit
1aa376f946
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue