diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-07-25 10:03:08 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-07-25 10:03:08 (GMT) |
commit | a1bddadddddc5743d91f2007fb8182c5fbf96fc5 (patch) | |
tree | 7b6777e1189301c76d8bb9db725291b5418630e0 /Doc/reference | |
parent | 374164c2f5a2f95f74cc9b97d4b58d7c74ff3a94 (diff) | |
parent | 7e732a7181ab6debfe5df33bfc29035d522dfef9 (diff) | |
download | cpython-a1bddadddddc5743d91f2007fb8182c5fbf96fc5.zip cpython-a1bddadddddc5743d91f2007fb8182c5fbf96fc5.tar.gz cpython-a1bddadddddc5743d91f2007fb8182c5fbf96fc5.tar.bz2 |
Issue #24713: Use importlib.reload() in import reference document.
imp.reload() was deprecated in Python 3.4 and changed to call
importlib.reload().
Patch by Petr Viktorin.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/import.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 50e4688..d549b26 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -200,7 +200,7 @@ of the module to result in an :exc:`ImportError`. Beware though, as if you keep a reference to the module object, invalidate its cache entry in :data:`sys.modules`, and then re-import the named module, the two module objects will *not* be the same. By contrast, -:func:`imp.reload` will reuse the *same* module object, and simply +:func:`importlib.reload` will reuse the *same* module object, and simply reinitialise the module contents by rerunning the module's code. |