Skip to content

Commit f1b4d30

Browse files
AA-Turnermiss-islington
authored andcommitted
pythonGH-109190: Copyedit 3.12 What's New: Update the imp porting guidance (pythonGH-109755)
(cherry picked from commit 7b8bfe1) Co-authored-by: Adam Turner <[email protected]>
1 parent 6f1d455 commit f1b4d30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ imp
14031403
* The :mod:`!imp` module has been removed. (Contributed by Barry Warsaw in
14041404
:gh:`98040`.)
14051405

1406-
* Replace removed :mod:`!imp` functions with :mod:`importlib` functions:
1406+
To migrate, consult the following correspondence table:
14071407

14081408
================================= =======================================
14091409
imp importlib
@@ -1418,9 +1418,10 @@ imp
14181418
``imp.new_module(name)`` ``types.ModuleType(name)``
14191419
``imp.reload()`` :func:`importlib.reload`
14201420
``imp.source_from_cache()`` :func:`importlib.util.source_from_cache`
1421+
``imp.load_source()`` *See below*
14211422
================================= =======================================
14221423

1423-
* Replace ``imp.load_source()`` with::
1424+
Replace ``imp.load_source()`` with::
14241425

14251426
import importlib.util
14261427
import importlib.machinery

0 commit comments

Comments
 (0)