File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1411,7 +1411,7 @@ imp
1411
1411
* The :mod: `!imp ` module has been removed. (Contributed by Barry Warsaw in
1412
1412
:gh: `98040 `.)
1413
1413
1414
- * Replace removed :mod: ` !imp ` functions with :mod: ` importlib ` functions :
1414
+ To migrate, consult the following correspondence table :
1415
1415
1416
1416
================================= =======================================
1417
1417
imp importlib
@@ -1426,9 +1426,10 @@ imp
1426
1426
``imp.new_module(name) `` ``types.ModuleType(name) ``
1427
1427
``imp.reload() `` :func: `importlib.reload `
1428
1428
``imp.source_from_cache() `` :func: `importlib.util.source_from_cache `
1429
+ ``imp.load_source() `` *See below *
1429
1430
================================= =======================================
1430
1431
1431
- * Replace ``imp.load_source() `` with::
1432
+ Replace ``imp.load_source() `` with::
1432
1433
1433
1434
import importlib.util
1434
1435
import importlib.machinery
You can’t perform that action at this time.
0 commit comments