Skip to content

Commit 52b2f9f

Browse files
[3.12] GH-109190: Copyedit 3.12 What's New: Update the imp porting guidance (GH-109755) (#109816)
GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (GH-109755) (cherry picked from commit 7b8bfe1) Co-authored-by: Adam Turner <[email protected]>
1 parent cb4a8c2 commit 52b2f9f

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
@@ -1410,7 +1410,7 @@ imp
14101410
* The :mod:`!imp` module has been removed. (Contributed by Barry Warsaw in
14111411
:gh:`98040`.)
14121412

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

14151415
================================= =======================================
14161416
imp importlib
@@ -1425,9 +1425,10 @@ imp
14251425
``imp.new_module(name)`` ``types.ModuleType(name)``
14261426
``imp.reload()`` :func:`importlib.reload`
14271427
``imp.source_from_cache()`` :func:`importlib.util.source_from_cache`
1428+
``imp.load_source()`` *See below*
14281429
================================= =======================================
14291430

1430-
* Replace ``imp.load_source()`` with::
1431+
Replace ``imp.load_source()`` with::
14311432

14321433
import importlib.util
14331434
import importlib.machinery

0 commit comments

Comments
 (0)