mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix a name in an example
This commit is contained in:
parent
4cbab346df
commit
86a8be00ed
1 changed files with 1 additions and 1 deletions
|
@ -1389,7 +1389,7 @@ Python 3.6 and newer for other parts of the code).
|
|||
break
|
||||
else:
|
||||
raise ImportError(f'No module named {absolute_name!r}')
|
||||
module = util.module_from_spec(spec)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
sys.modules[absolute_name] = module
|
||||
if path is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue