]> granicus.if.org Git - python/commitdiff
Issue26135 - In the tutorial section on modules, reference importlib.reload instead...
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 17 Jan 2016 02:43:24 +0000 (18:43 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 17 Jan 2016 02:43:24 +0000 (18:43 -0800)
Doc/tutorial/modules.rst

index 9ae64b0cf7e26df146d38b5f867a3b0c443de7a4..5fbd87972fbf7221c75d252db8bf0700e5c42b37 100644 (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: