[Python-checkins] cpython: Fix a name in an example

brett.cannon python-checkins at python.org
Sat Feb 20 21:47:14 EST 2016


https://hg.python.org/cpython/rev/2d746fb08d0d
changeset:   100284:2d746fb08d0d
user:        Brett Cannon <brett at python.org>
date:        Sat Feb 20 18:47:09 2016 -0800
summary:
  Fix a name in an example

files:
  Doc/library/importlib.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -1389,7 +1389,7 @@
               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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list