summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pkgutil.rst7
-rw-r--r--Doc/whatsnew/3.12.rst5
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst
index 98e6e29..891a867 100644
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -64,6 +64,10 @@ support.
.. versionchanged:: 3.4
Updated to be based on :pep:`451`
+ .. deprecated-removed:: 3.12 3.14
+ Use :func:`importlib.util.find_spec` instead.
+
+
.. function:: get_importer(path_item)
Retrieve a :term:`finder` for the given *path_item*.
@@ -96,6 +100,9 @@ support.
.. versionchanged:: 3.4
Updated to be based on :pep:`451`
+ .. deprecated-removed:: 3.12 3.14
+ Use :func:`importlib.util.find_spec` instead.
+
.. function:: iter_importers(fullname='')
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 49f9bd2..3dfd787 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -813,6 +813,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
----------------------------------