]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Prepare for Sphinx 9 (#142057)
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Sat, 29 Nov 2025 14:49:37 +0000 (14:49 +0000)
committerGitHub <noreply@github.com>
Sat, 29 Nov 2025 14:49:37 +0000 (16:49 +0200)
Doc/howto/urllib2.rst
Doc/library/socket.rst
Doc/tools/extensions/glossary_search.py

index d79d1abe8d05770ea10fdec026895d8cd1d82621..4e77d2cb407f726d04b3bae856310fec8d2711ea 100644 (file)
@@ -15,7 +15,7 @@ Introduction
     You may also find useful the following article on fetching web resources
     with Python:
 
-    * `Basic Authentication <https://web.archive.org/web/20201215133350/http://www.voidspace.org.uk/python/articles/authentication.shtml>`_
+    * `Basic Authentication <https://web.archive.org/web/20201215133350/http://www.voidspace.org.uk/python/articles/authentication.shtml>`__
 
         A tutorial on *Basic Authentication*, with examples in Python.
 
index 976136885eac1b9848fb2f2b27f5e8fcd9566176..b16cde34ec1ef53296aedc62e09380ef3145c3c4 100644 (file)
@@ -2095,11 +2095,8 @@ to sockets.
       Accepts any real number, not only integer or float.
 
 
-.. method:: socket.setsockopt(level, optname, value: int)
-.. method:: socket.setsockopt(level, optname, value: buffer)
-   :noindex:
-.. method:: socket.setsockopt(level, optname, None, optlen: int)
-   :noindex:
+.. method:: socket.setsockopt(level, optname, value: int | Buffer)
+            socket.setsockopt(level, optname, None, optlen: int)
 
    .. index:: pair: module; struct
 
index 502b6cd95bcb9459578bbdd2b56a3e1b7e3935c9..bcda4b7b4355935b3173c87a13cfeee3f001c7fa 100644 (file)
@@ -38,7 +38,7 @@ def process_glossary_nodes(
             rendered = app.builder.render_partial(definition)
             terms[term.lower()] = {
                 'title': term,
-                'body': rendered['html_body'],
+                'body': rendered['fragment'],
             }