Skip to content

Commit 1ad7ef4

Browse files
AA-TurnerGlyphack
authored andcommitted
pythonGH-109190: Copyedit 3.12 What's New: Update the imp porting guidance (python#109755)
1 parent 64c7f07 commit 1ad7ef4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/whatsnew/3.12.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ imp
14111411
* The :mod:`!imp` module has been removed. (Contributed by Barry Warsaw in
14121412
:gh:`98040`.)
14131413

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

14161416
================================= =======================================
14171417
imp importlib
@@ -1426,9 +1426,10 @@ imp
14261426
``imp.new_module(name)`` ``types.ModuleType(name)``
14271427
``imp.reload()`` :func:`importlib.reload`
14281428
``imp.source_from_cache()`` :func:`importlib.util.source_from_cache`
1429+
``imp.load_source()`` *See below*
14291430
================================= =======================================
14301431

1431-
* Replace ``imp.load_source()`` with::
1432+
Replace ``imp.load_source()`` with::
14321433

14331434
import importlib.util
14341435
import importlib.machinery

0 commit comments

Comments
 (0)