merge from 3.5
Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
This commit is contained in:
commit
a8a3a1b7e8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue