Skip to content

Commit 1aa376f

Browse files
authored
Remove double space in import error message (#103458)
1 parent 9cc1960 commit 1aa376f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/importlib/_bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ def _find_and_load_unlocked(name, import_):
12601260
try:
12611261
path = parent_module.__path__
12621262
except AttributeError:
1263-
msg = f'{_ERR_MSG_PREFIX} {name!r}; {parent!r} is not a package'
1263+
msg = f'{_ERR_MSG_PREFIX}{name!r}; {parent!r} is not a package'
12641264
raise ModuleNotFoundError(msg, name=name) from None
12651265
parent_spec = parent_module.__spec__
12661266
child = name.rpartition('.')[2]

0 commit comments

Comments
 (0)