Skip to content

Commit 80538e9

Browse files
committed
Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
1 parent 332334f commit 80538e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tutorial/modules.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ use it to save typing in interactive sessions.
117117
For efficiency reasons, each module is only imported once per interpreter
118118
session. Therefore, if you change your modules, you must restart the
119119
interpreter -- or, if it's just one module you want to test interactively,
120-
use :func:`imp.reload`, e.g. ``import imp; imp.reload(modulename)``.
120+
use :func:`importlib.reload`, e.g. ``import importlib;
121+
importlib.reload(modulename)``.
121122

122123

123124
.. _tut-modulesasscripts:

0 commit comments

Comments
 (0)