Fix a name in an example

This commit is contained in:
Brett Cannon 2016-02-20 18:47:09 -08:00
parent 4cbab346df
commit 86a8be00ed
1 changed files with 1 additions and 1 deletions

View File

@ -1389,7 +1389,7 @@ Python 3.6 and newer for other parts of the code).
break break
else: else:
raise ImportError(f'No module named {absolute_name!r}') 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) spec.loader.exec_module(module)
sys.modules[absolute_name] = module sys.modules[absolute_name] = module
if path is not None: if path is not None: