Skip to content

Commit 002be87

Browse files
committed
mention imp replacements
1 parent e6dafd0 commit 002be87

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Doc/library/distutils.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.. deprecated-removed:: 3.10 3.12
99

1010
This module is no longer part of the Python standard library.
11-
It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed-distutils>` after
1212
being deprecated in Python 3.10. The removal was decided in :pep:`632`,
1313
which has `migration advice
1414
<https://peps.python.org/pep-0632/#migration-advice>`_.

Doc/library/imp.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
.. deprecated-removed:: 3.4 3.12
99

1010
This module is no longer part of the Python standard library.
11-
It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed-imp>` after
1212
being deprecated in Python 3.4.
1313

14+
The :ref:`removal notice <whatsnew312-removed-imp>` includes guidance for
15+
migrating code from :mod:`!imp` to :mod:`importlib`.
16+
1417
The last version of Python that provided the :mod:`!imp` module was
1518
`Python 3.11 <https://docs.python.org/3.11/library/imp.html>`_.

Doc/whatsnew/3.12.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,8 @@ configparser
13681368
* :class:`configparser.ConfigParser` no longer has a ``readfp`` method.
13691369
Use :meth:`~configparser.ConfigParser.read_file` instead.
13701370

1371+
.. _whatsnew312-removed-distutils:
1372+
13711373
distutils
13721374
---------
13731375

@@ -1449,6 +1451,8 @@ importlib
14491451
* ``importlib.abc.Finder``, ``pkgutil.ImpImporter``, and ``pkgutil.ImpLoader``
14501452
have been removed. (Contributed by Barry Warsaw in :gh:`98040`.)
14511453

1454+
.. _whatsnew312-removed-imp:
1455+
14521456
imp
14531457
---
14541458

0 commit comments

Comments
 (0)