Kaydet (Commit) 86a8be00 authored tarafından Brett Cannon's avatar Brett Cannon

Fix a name in an example

üst 4cbab346
...@@ -1389,7 +1389,7 @@ Python 3.6 and newer for other parts of the code). ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment