summaryrefslogtreecommitdiffstats
path: root/Doc/library/pkgutil.rst
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-05-03 23:11:54 (GMT)
committerGitHub <noreply@github.com>2023-05-03 23:11:54 (GMT)
commitd6e83fbf30fb25996b547d8a2444814437e228e5 (patch)
tree56a956bc3dcac4bc088742b682300ba6135678b6 /Doc/library/pkgutil.rst
parent9f9e001ab2ab67acdb2e0383a25ab4c164608a47 (diff)
downloadcpython-d6e83fbf30fb25996b547d8a2444814437e228e5.zip
cpython-d6e83fbf30fb25996b547d8a2444814437e228e5.tar.gz
cpython-d6e83fbf30fb25996b547d8a2444814437e228e5.tar.bz2
gh-97850: Deprecate `find_loader` and `get_loader` in `pkgutil` (GH-98520)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Diffstat (limited to 'Doc/library/pkgutil.rst')
-rw-r--r--Doc/library/pkgutil.rst7
1 files changed, 7 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='')