diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-05-03 23:11:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 23:11:54 (GMT) |
commit | d6e83fbf30fb25996b547d8a2444814437e228e5 (patch) | |
tree | 56a956bc3dcac4bc088742b682300ba6135678b6 /Doc/whatsnew | |
parent | 9f9e001ab2ab67acdb2e0383a25ab4c164608a47 (diff) | |
download | cpython-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/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 5 |
1 files changed, 5 insertions, 0 deletions
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 ---------------------------------- |