Commit 80538e9d authored by Senthil Kumaran's avatar Senthil Kumaran

Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.

parent 332334f1
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment