Skip to content

Commit 7e732a7

Browse files
committed
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.
1 parent eaf16ab commit 7e732a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/import.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ of the module to result in an :exc:`ImportError`.
200200
Beware though, as if you keep a reference to the module object,
201201
invalidate its cache entry in :data:`sys.modules`, and then re-import the
202202
named module, the two module objects will *not* be the same. By contrast,
203-
:func:`imp.reload` will reuse the *same* module object, and simply
203+
:func:`importlib.reload` will reuse the *same* module object, and simply
204204
reinitialise the module contents by rerunning the module's code.
205205

206206

0 commit comments

Comments
 (0)