Skip to content

Commit 6bd2e08

Browse files
[3.14] gh-101100: Fix Sphinx warnings in 'Buffer Object Structures' documentation (GH-151058)
(cherry picked from commit a187330) Co-authored-by: Christian Zinck <christian.zinck@gmail.com>
1 parent 103f776 commit 6bd2e08

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Doc/c-api/typeobj.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,13 +3045,13 @@ Buffer Object Structures
30453045
steps:
30463046

30473047
(1) Check if the request can be met. If not, raise :exc:`BufferError`,
3048-
set :c:expr:`view->obj` to ``NULL`` and return ``-1``.
3048+
set ``view->obj`` to ``NULL`` and return ``-1``.
30493049

30503050
(2) Fill in the requested fields.
30513051

30523052
(3) Increment an internal counter for the number of exports.
30533053

3054-
(4) Set :c:expr:`view->obj` to *exporter* and increment :c:expr:`view->obj`.
3054+
(4) Set ``view->obj`` to *exporter* and increment ``view->obj``.
30553055

30563056
(5) Return ``0``.
30573057

@@ -3077,10 +3077,10 @@ Buffer Object Structures
30773077
schemes can be used:
30783078

30793079
* Re-export: Each member of the tree acts as the exporting object and
3080-
sets :c:expr:`view->obj` to a new reference to itself.
3080+
sets ``view->obj`` to a new reference to itself.
30813081

30823082
* Redirect: The buffer request is redirected to the root object of the
3083-
tree. Here, :c:expr:`view->obj` will be a new reference to the root
3083+
tree. Here, ``view->obj`` will be a new reference to the root
30843084
object.
30853085

30863086
The individual fields of *view* are described in section
@@ -3134,7 +3134,7 @@ Buffer Object Structures
31343134
*view* argument.
31353135

31363136

3137-
This function MUST NOT decrement :c:expr:`view->obj`, since that is
3137+
This function MUST NOT decrement ``view->obj``, since that is
31383138
done automatically in :c:func:`PyBuffer_Release` (this scheme is
31393139
useful for breaking reference cycles).
31403140

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Doc/c-api/init_config.rst
88
Doc/c-api/intro.rst
99
Doc/c-api/module.rst
1010
Doc/c-api/stable.rst
11-
Doc/c-api/typeobj.rst
1211
Doc/library/ast.rst
1312
Doc/library/asyncio-extending.rst
1413
Doc/library/email.charset.rst

0 commit comments

Comments
 (0)