]> granicus.if.org Git - python/commitdiff
Fix a name in an example
authorBrett Cannon <brett@python.org>
Sun, 21 Feb 2016 02:47:09 +0000 (18:47 -0800)
committerBrett Cannon <brett@python.org>
Sun, 21 Feb 2016 02:47:09 +0000 (18:47 -0800)
Doc/library/importlib.rst

index 17a65aab05a842af4bd4e5770ee64dcb37b8ce2f..2bb586c393e927faacc8967d4a101e214aa0440b 100644 (file)
@@ -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: