Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe1941e commit 4cbab34Copy full SHA for 4cbab34
1 file changed
Doc/library/importlib.rst
@@ -1389,7 +1389,7 @@ Python 3.6 and newer for other parts of the code).
1389
break
1390
else:
1391
raise ImportError(f'No module named {absolute_name!r}')
1392
- module = spec.loader.create_module(spec)
+ module = util.module_from_spec(spec)
1393
spec.loader.exec_module(module)
1394
sys.modules[absolute_name] = module
1395
if path is not None:
0 commit comments