merge from 3.5

Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
This commit is contained in:
Senthil Kumaran 2016-01-16 18:43:57 -08:00
commit a8a3a1b7e8
1 changed files with 2 additions and 1 deletions

View File

@ -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: