Skip to content

Commit

Permalink
Remove double space in import error message (#103458)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat authored Apr 14, 2023
1 parent 9cc1960 commit 1aa376f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/importlib/_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1aa376f

Please sign in to comment.