Skip to content

Commit

Permalink
mention imp replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Nov 11, 2024
1 parent e6dafd0 commit 002be87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/library/distutils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.. deprecated-removed:: 3.10 3.12

This module is no longer part of the Python standard library.
It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after
It was :ref:`removed in Python 3.12 <whatsnew312-removed-distutils>` after
being deprecated in Python 3.10. The removal was decided in :pep:`632`,
which has `migration advice
<https://peps.python.org/pep-0632/#migration-advice>`_.
Expand Down
5 changes: 4 additions & 1 deletion Doc/library/imp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
.. deprecated-removed:: 3.4 3.12

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

The :ref:`removal notice <whatsnew312-removed-imp>` includes guidance for
migrating code from :mod:`!imp` to :mod:`importlib`.

The last version of Python that provided the :mod:`!imp` module was
`Python 3.11 <https://docs.python.org/3.11/library/imp.html>`_.
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,8 @@ configparser
* :class:`configparser.ConfigParser` no longer has a ``readfp`` method.
Use :meth:`~configparser.ConfigParser.read_file` instead.

.. _whatsnew312-removed-distutils:

distutils
---------

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

.. _whatsnew312-removed-imp:

imp
---

Expand Down

0 comments on commit 002be87

Please sign in to comment.