]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: Fix Sphinx warnings in license.rst (#108142) (#108176)
authorErlend E. Aasland <erlend@python.org>
Sun, 20 Aug 2023 16:27:44 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2023 16:27:44 +0000 (16:27 +0000)
(cherry picked by commit 4d4393139fae39db26dead33529b6ae0bafbfc58)

- Fix links to stdlib modules
- Silence links to external functions

Doc/license.rst
Doc/tools/.nitignore

index 4e8a25ed5ecc18a83701caa126a27dbcda3fb665..6644df65170a0c6a849375dcc8349f06f6f6a031 100644 (file)
@@ -351,8 +351,8 @@ the verbatim comments from the original code::
 Sockets
 -------
 
-The :mod:`socket` module uses the functions, :func:`getaddrinfo`, and
-:func:`getnameinfo`, which are coded in separate source files from the WIDE
+The :mod:`socket` module uses the functions, :c:func:`!getaddrinfo`, and
+:c:func:`!getnameinfo`, which are coded in separate source files from the WIDE
 Project, https://www.wide.ad.jp/. ::
 
    Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -537,7 +537,7 @@ The :mod:`xmlrpc.client` module contains the following notice::
 test_epoll
 ----------
 
-The :mod:`test_epoll` module contains the following notice::
+The :mod:`!test.test_epoll` module contains the following notice::
 
   Copyright (c) 2001-2006 Twisted Matrix Laboratories.
 
@@ -842,7 +842,7 @@ and later releases derived from that, the Apache License v2 applies::
 expat
 -----
 
-The :mod:`pyexpat` extension is built using an included copy of the expat
+The :mod:`pyexpat <xml.parsers.expat>` extension is built using an included copy of the expat
 sources unless the build is configured ``--with-system-expat``::
 
   Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
index 2ce7274cb37a7f9b86eeba0ea95bd1d07ef1d6fb..d80c8f1142a71ee362d5334e65c083803f904c8d 100644 (file)
@@ -160,7 +160,6 @@ Doc/library/xml.sax.rst
 Doc/library/xmlrpc.client.rst
 Doc/library/xmlrpc.server.rst
 Doc/library/zlib.rst
-Doc/license.rst
 Doc/reference/compound_stmts.rst
 Doc/reference/datamodel.rst
 Doc/reference/expressions.rst