Skip to content

Commit 1b69156

Browse files
Remove dead links to pkg_resources in importlib docs (#148344)
1 parent fc5df4d commit 1b69156

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ the metadata of an installed `Distribution Package <https://packaging.python.org
1818
such as its entry points
1919
or its top-level names (`Import Package <https://packaging.python.org/en/latest/glossary/#term-Import-Package>`_\s, modules, if any).
2020
Built in part on Python's import system, this library
21-
intends to replace similar functionality in the `entry point
22-
API`_ and `metadata API`_ of ``pkg_resources``. Along with
23-
:mod:`importlib.resources`,
24-
this package can eliminate the need to use the older and less efficient
25-
``pkg_resources`` package.
21+
provides the entry point and metadata APIs that were previously
22+
exposed by the now-removed ``pkg_resources`` package. Along with
23+
:mod:`importlib.resources`, it supersedes ``pkg_resources``.
2624

2725
``importlib.metadata`` operates on third-party *distribution packages*
2826
installed into Python's ``site-packages`` directory via tools such as
@@ -717,7 +715,3 @@ packages served by the ``DatabaseImporter``, assuming that the
717715
The ``DatabaseDistribution`` may also provide other metadata files, like
718716
``RECORD`` (required for :attr:`!Distribution.files`) or override the
719717
implementation of :attr:`!Distribution.files`. See the source for more inspiration.
720-
721-
722-
.. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points
723-
.. _`metadata API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#metadata-api

Doc/library/importlib.resources.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ for example, a package and its resources can be imported from a zip file using
3333

3434
.. note::
3535

36-
This module provides functionality similar to `pkg_resources
37-
<https://setuptools.readthedocs.io/en/latest/pkg_resources.html>`_ `Basic
38-
Resource Access
39-
<https://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access>`_
40-
without the performance overhead of that package. This makes reading
41-
resources included in packages easier, with more stable and consistent
42-
semantics.
43-
4436
The standalone backport of this module provides more information
4537
on `using importlib.resources
4638
<https://importlib-resources.readthedocs.io/en/latest/using.html>`_ and

0 commit comments

Comments
 (0)