[Python-checkins] Doc: some rst linting. (GH-30149)

JulienPalard webhook-mailer at python.org
Fri Dec 17 07:55:11 EST 2021


https://github.com/python/cpython/commit/62a0a2a25dbe3ba6f2973a37a3022d982fdc163c
commit: 62a0a2a25dbe3ba6f2973a37a3022d982fdc163c
branch: main
author: Julien Palard <julien at palard.fr>
committer: JulienPalard <julien at palard.fr>
date: 2021-12-17T13:55:03+01:00
summary:

Doc: some rst linting. (GH-30149)

files:
M Doc/c-api/apiabiversion.rst
M Doc/library/types.rst
M Doc/whatsnew/3.6.rst

diff --git a/Doc/c-api/apiabiversion.rst b/Doc/c-api/apiabiversion.rst
index 53a42e7f28ef1..85b6e2f373877 100644
--- a/Doc/c-api/apiabiversion.rst
+++ b/Doc/c-api/apiabiversion.rst
@@ -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
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 5cd42f1fc2928..e0e77dfbfe7ed 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -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.
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index d7884ea30d7d2..a56d7a592305f 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -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



More information about the Python-checkins mailing list