Skip to content

Commit 7d5877f

Browse files
committed
Fix pre-commit lint.
1 parent 5c44391 commit 7d5877f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,9 +1248,9 @@ code, or when embedding the Python interpreter:
12481248
12491249
Set the :term:`current thread state` to *tstate*, and return
12501250
the old value.
1251-
1251+
12521252
If there is an :term:`attached thread state` for the current
1253-
thread, it will be detached. Upon returning from this function,
1253+
thread, it will be detached. Upon returning from this function,
12541254
*tstate* will become :term:`attached <attached thread state>` instead
12551255
if it's not ``NULL``. If it is ``NULL``, then the :term:`current thread state`
12561256
will be ``NULL``.

Doc/glossary.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Glossary
145145
block, and then re-attached when :c:macro:`Py_END_ALLOW_THREADS` is reached.
146146

147147
On most builds of Python, having an attached thread state means that the
148-
caller holds the :term:`GIL` for the current interpreter.
148+
caller holds the :term:`GIL` for the current interpreter.
149149

150150
attribute
151151
A value associated with an object which is usually referenced by name
@@ -353,7 +353,7 @@ Glossary
353353
A per-thread :c:data:`PyThreadState` pointer for the current thread.
354354
The pointer might be ``NULL``, in which case Python code should not
355355
get executed.
356-
356+
357357
If the current thread state is non-``NULL``, then the :term:`thread state`
358358
that it points to is considered to be :term:`attached <attached thread state>`.
359359

0 commit comments

Comments
 (0)