Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review
  • Loading branch information
sobolevn committed Apr 19, 2023
commit 1e26981c5c7795aab510abf7b2c2c2f23e054886
4 changes: 2 additions & 2 deletions Doc/library/pkgutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ support.
.. versionchanged:: 3.4
Updated to be based on :pep:`451`

.. deprecated:: 3.12
.. deprecated-removed:: 3.12 3.14
Use :func:`importlib.util.find_spec` instead.


Expand Down Expand Up @@ -127,7 +127,7 @@ support.
.. versionchanged:: 3.4
Updated to be based on :pep:`451`

.. deprecated:: 3.12
.. deprecated-removed:: 3.12 3.14
Use :func:`importlib.util.find_spec` instead.


Expand Down
10 changes: 5 additions & 5 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,6 @@ Deprecated
:exc:`ImportWarning`).
(Contributed by Brett Cannon in :gh:`65961`.)

* :func:`pkgutil.find_loader` and :func:`pkgutil.get_loader`
now raise :exc:`DeprecationWarning`;
use :func:`importlib.util.find_spec` instead.
(Contributed by Nikita Sobolev in :gh:`97850`.)

* The :meth:`~asyncio.get_event_loop` method of the
default event loop policy now emits a :exc:`DeprecationWarning` if there
is no current event loop set and it decides to create one.
Expand Down Expand Up @@ -695,6 +690,11 @@ Pending Removal in Python 3.14
* The *onerror* argument of :func:`shutil.rmtree` is deprecated in 3.12,
and will be removed in 3.14.

* :func:`pkgutil.find_loader` and :func:`pkgutil.get_loader`
now raise :exc:`DeprecationWarning`;
use :func:`importlib.util.find_spec` instead.
(Contributed by Nikita Sobolev in :gh:`97850`.)

Pending Removal in Future Versions
----------------------------------

Expand Down