summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-01-17 02:43:57 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-01-17 02:43:57 (GMT)
commita8a3a1b7e80cb4863f8e2ce28bb6e860f70839fb (patch)
tree2ba59f041ea8dda684a9846b848aff5bd63e229d
parent709c2aeba63a63f4bc58813a79f81c89fbd63326 (diff)
parent80538e9dfeb86cb481ef2dc7e80c1aa01a519905 (diff)
downloadcpython-a8a3a1b7e80cb4863f8e2ce28bb6e860f70839fb.zip
cpython-a8a3a1b7e80cb4863f8e2ce28bb6e860f70839fb.tar.gz
cpython-a8a3a1b7e80cb4863f8e2ce28bb6e860f70839fb.tar.bz2
merge from 3.5
Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
-rw-r--r--Doc/tutorial/modules.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst
index 9ae64b0..5fbd879 100644
--- a/Doc/tutorial/modules.rst
+++ b/Doc/tutorial/modules.rst
@@ -117,7 +117,8 @@ use it to save typing in interactive sessions.
For efficiency reasons, each module is only imported once per interpreter
session. Therefore, if you change your modules, you must restart the
interpreter -- or, if it's just one module you want to test interactively,
- use :func:`imp.reload`, e.g. ``import imp; imp.reload(modulename)``.
+ use :func:`importlib.reload`, e.g. ``import importlib;
+ importlib.reload(modulename)``.
.. _tut-modulesasscripts: