From: Julien Palard Date: Tue, 19 Oct 2021 19:13:24 +0000 (+0200) Subject: [doc]: Fix missing space in c-api/init.rst and add rstlint rule (GH-28988) X-Git-Tag: v3.11.0a2~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bda69abe849b37467350d3750ae24d356230c940;p=thirdparty%2FPython%2Fcpython.git [doc]: Fix missing space in c-api/init.rst and add rstlint rule (GH-28988) --- diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 5e817268a203..09dfc68fee57 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1177,7 +1177,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`. Suspend tracing and profiling in the Python thread state *tstate*. - Resume them using the:c:func:`PyThreadState_LeaveTracing` function. + Resume them using the :c:func:`PyThreadState_LeaveTracing` function. .. versionadded:: 3.11 @@ -1185,7 +1185,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`. .. c:function:: void PyThreadState_LeaveTracing(PyThreadState *tstate) Resume tracing and profiling in the Python thread state *tstate* suspended - by the:c:func:`PyThreadState_EnterTracing` function. + by the :c:func:`PyThreadState_EnterTracing` function. See also :c:func:`PyEval_SetTrace` and :c:func:`PyEval_SetProfile` functions. diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 045b7d7c945d..33cbaadfce94 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -43,10 +43,10 @@ directives = [ ] roles = [ - ":class:", - ":func:", - ":meth:", - ":mod:", + "(?