Fix a name in an example
This commit is contained in:
parent
4cbab346df
commit
86a8be00ed
|
@ -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…
Reference in New Issue