Skip to content

Commit 37d60c0

Browse files
gh-92417: importlib docs: remove references to unsupported Python versions (GH-92424) (GH-92979)
Co-authored-by: CAM Gerlach <[email protected]> (cherry picked from commit 70aa1b9) Co-authored-by: Alex Waygood <[email protected]>
1 parent 27302ae commit 37d60c0

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
package metadata. Built in part on Python's import system, this library
1818
intends to replace similar functionality in the `entry point
1919
API`_ and `metadata API`_ of ``pkg_resources``. Along with
20-
:mod:`importlib.resources` in Python 3.7
21-
and newer (backported as `importlib_resources`_ for older versions of
22-
Python), this can eliminate the need to use the older and less efficient
20+
:mod:`importlib.resources` (with new features backported to the
21+
`importlib_resources`_ package), this can eliminate the need to use the older
22+
and less efficient
2323
``pkg_resources`` package.
2424

2525
By "installed package" we generally mean a third-party package installed into

Doc/library/importlib.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ ABC hierarchy::
414414

415415
.. versionadded:: 3.4
416416

417-
.. versionchanged:: 3.5
418-
Starting in Python 3.6, this method will not be optional when
417+
.. versionchanged:: 3.6
418+
This method is no longer optional when
419419
:meth:`exec_module` is defined.
420420

421421
.. method:: exec_module(module)
@@ -1273,8 +1273,7 @@ import, then you should use :func:`importlib.util.find_spec`.
12731273
Importing a source file directly
12741274
''''''''''''''''''''''''''''''''
12751275

1276-
To import a Python source file directly, use the following recipe
1277-
(Python 3.5 and newer only)::
1276+
To import a Python source file directly, use the following recipe::
12781277

12791278
import importlib.util
12801279
import sys
@@ -1355,9 +1354,7 @@ Import itself is implemented in Python code, making it possible to
13551354
expose most of the import machinery through importlib. The following
13561355
helps illustrate the various APIs that importlib exposes by providing an
13571356
approximate implementation of
1358-
:func:`importlib.import_module` (Python 3.4 and newer for the importlib usage,
1359-
Python 3.6 and newer for other parts of the code).
1360-
::
1357+
:func:`importlib.import_module`::
13611358

13621359
import importlib.util
13631360
import sys

0 commit comments

Comments
 (0)