File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1403,7 +1403,7 @@ imp
1403
1403
* The :mod: `!imp ` module has been removed. (Contributed by Barry Warsaw in
1404
1404
:gh: `98040 `.)
1405
1405
1406
- * Replace removed :mod: ` !imp ` functions with :mod: ` importlib ` functions :
1406
+ To migrate, consult the following correspondence table :
1407
1407
1408
1408
================================= =======================================
1409
1409
imp importlib
@@ -1418,9 +1418,10 @@ imp
1418
1418
``imp.new_module(name) `` ``types.ModuleType(name) ``
1419
1419
``imp.reload() `` :func: `importlib.reload `
1420
1420
``imp.source_from_cache() `` :func: `importlib.util.source_from_cache `
1421
+ ``imp.load_source() `` *See below *
1421
1422
================================= =======================================
1422
1423
1423
- * Replace ``imp.load_source() `` with::
1424
+ Replace ``imp.load_source() `` with::
1424
1425
1425
1426
import importlib.util
1426
1427
import importlib.machinery
You can’t perform that action at this time.
0 commit comments