]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: some rst linting. (GH-30149)
authorJulien Palard <julien@palard.fr>
Fri, 17 Dec 2021 12:55:03 +0000 (13:55 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Dec 2021 12:55:03 +0000 (13:55 +0100)
Doc/c-api/apiabiversion.rst
Doc/library/types.rst
Doc/whatsnew/3.6.rst

index 53a42e7f28ef103ec188fadba1c2098dd672fd63..85b6e2f373877f29001f6d4e1c139eb4792d14bd 100644 (file)
@@ -63,7 +63,7 @@ See :ref:`stable` for a discussion of API and ABI stability across versions.
 .. c:var:: const unsigned long Py_Version
 
    The Python runtime version number encoded in a single constant integer, with
-   the same format as the c:macro:`PY_VERSION_HEX` macro.
+   the same format as the :c:macro:`PY_VERSION_HEX` macro.
    This contains the Python version used at run time.
 
    .. versionadded:: 3.11
index 5cd42f1fc2928d14092140e78cfb430269a17ff8..e0e77dfbfe7ed2dd37082a8eaa8302671addf030 100644 (file)
@@ -239,7 +239,7 @@ Standard names are defined for the following types:
       The :term:`loader` which loaded the module. Defaults to ``None``.
 
       This attribute is to match :attr:`importlib.machinery.ModuleSpec.loader`
-      as stored in the attr:`__spec__` object.
+      as stored in the :attr:`__spec__` object.
 
       .. note::
          A future version of Python may stop setting this attribute by default.
@@ -264,7 +264,7 @@ Standard names are defined for the following types:
       :attr:`__name__` if the module is a package itself). Defaults to ``None``.
 
       This attribute is to match :attr:`importlib.machinery.ModuleSpec.parent`
-      as stored in the attr:`__spec__` object.
+      as stored in the :attr:`__spec__` object.
 
       .. note::
          A future version of Python may stop setting this attribute by default.
index d7884ea30d7d2b2491b7c68db625c6c4427ea7d5..a56d7a592305f04f46057ebab5e7110478409dce 100644 (file)
@@ -1422,7 +1422,7 @@ The socket module now supports the address family
 Victor Stinner.)
 
 New Linux constants ``TCP_USER_TIMEOUT`` and ``TCP_CONGESTION`` were added.
-(Contributed by Omar Sandoval, issue:`26273`).
+(Contributed by Omar Sandoval, :issue:`26273`).
 
 
 socketserver