Skip to content

Commit a8a3a1b

Browse files
committed
merge from 3.5
Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
2 parents 709c2ae + 80538e9 commit a8a3a1b

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)