summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-01-17 02:43:24 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-01-17 02:43:24 (GMT)
commit80538e9dfeb86cb481ef2dc7e80c1aa01a519905 (patch)
tree573d85e5d2f9ea9d82bc191b90f3aaa569b09d39 /Doc/tutorial
parent332334f1abdca7d8c55f3e8f59da4ca048b42754 (diff)
downloadcpython-80538e9dfeb86cb481ef2dc7e80c1aa01a519905.zip
cpython-80538e9dfeb86cb481ef2dc7e80c1aa01a519905.tar.gz
cpython-80538e9dfeb86cb481ef2dc7e80c1aa01a519905.tar.bz2
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 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: