summaryrefslogtreecommitdiff
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-01-16 18:43:57 -0800
committerSenthil Kumaran <senthil@uthcode.com>2016-01-16 18:43:57 -0800
commita8a3a1b7e80cb4863f8e2ce28bb6e860f70839fb (patch)
tree2ba59f041ea8dda684a9846b848aff5bd63e229d /Doc/tutorial
parent709c2aeba63a63f4bc58813a79f81c89fbd63326 (diff)
parent80538e9dfeb86cb481ef2dc7e80c1aa01a519905 (diff)
downloadcpython-git-a8a3a1b7e80cb4863f8e2ce28bb6e860f70839fb.tar.gz
merge from 3.5
Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
Diffstat (limited to 'Doc/tutorial')
-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 9ae64b0cf7..5fbd87972f 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: