]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-101100: Fix sphinx warnings in `reference/import.rst` (GH-114646) (#114654)
authorNikita Sobolev <mail@sobolevn.me>
Sat, 27 Jan 2024 16:37:13 +0000 (19:37 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 16:37:13 +0000 (09:37 -0700)
Doc/reference/import.rst
Doc/tools/.nitignore

index c44fb9815e9f994cf3b1d7146fa63a0a081f9f64..86986723f5b7a3ff15eb2e205496c5a3c5fe68d7 100644 (file)
@@ -327,7 +327,7 @@ modules, and one that knows how to import modules from an :term:`import path`
    finders replaced :meth:`~importlib.abc.MetaPathFinder.find_module`, which
    is now deprecated.  While it will continue to work without change, the
    import machinery will try it only if the finder does not implement
-   ``find_spec()``.
+   :meth:`~importlib.abc.MetaPathFinder.find_spec`.
 
 .. versionchanged:: 3.10
    Use of :meth:`~importlib.abc.MetaPathFinder.find_module` by the import system
@@ -795,7 +795,7 @@ attributes on package objects are also used.  These provide additional ways
 that the import machinery can be customized.
 
 :data:`sys.path` contains a list of strings providing search locations for
-modules and packages.  It is initialized from the :data:`PYTHONPATH`
+modules and packages.  It is initialized from the :envvar:`PYTHONPATH`
 environment variable and various other installation- and
 implementation-specific defaults.  Entries in :data:`sys.path` can name
 directories on the file system, zip files, and potentially other "locations"
index 3534cfaddac31136cc3875e4ed4b09ccb7e38691..3248f32847987187f9921d35dd33205079dc405d 100644 (file)
@@ -92,7 +92,6 @@ Doc/library/xmlrpc.server.rst
 Doc/library/zlib.rst
 Doc/reference/compound_stmts.rst
 Doc/reference/datamodel.rst
-Doc/reference/import.rst
 Doc/tutorial/datastructures.rst
 Doc/using/windows.rst
 Doc/whatsnew/2.0.rst