Skip to content

Commit c696bee

Browse files
fix _acquire_restore
1 parent 3f79167 commit c696bee

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

Modules/_threadmodule.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ Release the lock.
938938
static PyObject *
939939
_thread_lock___exit___impl(lockobject *self, PyObject *exc_type,
940940
PyObject *exc_value, PyObject *exc_tb)
941-
/*[clinic end generated code: output=c9e8eefa69beed07 input=f1f539437b055547]*/
941+
/*[clinic end generated code: output=c9e8eefa69beed07 input=c74d4abe15a6c037]*/
942942
{
943943
return _thread_lock_release_impl(self);
944944
}
@@ -1204,19 +1204,20 @@ _thread_RLock_locked_impl(rlockobject *self)
12041204

12051205
/*[clinic input]
12061206
_thread.RLock._acquire_restore
1207-
*args: tuple
1207+
state: object
1208+
/
12081209
12091210
For internal use by `threading.Condition`.
12101211
[clinic start generated code]*/
12111212

12121213
static PyObject *
1213-
_thread_RLock__acquire_restore_impl(rlockobject *self, PyObject *args)
1214-
/*[clinic end generated code: output=108d1310afbb9ac3 input=005c769fe28f8a23]*/
1214+
_thread_RLock__acquire_restore_impl(rlockobject *self, PyObject *state)
1215+
/*[clinic end generated code: output=beb8f2713a35e775 input=c8f2094fde059447]*/
12151216
{
12161217
PyThread_ident_t owner;
12171218
Py_ssize_t count;
12181219

1219-
if (!PyArg_ParseTuple(args, "(n" Py_PARSE_THREAD_IDENT_T "):_acquire_restore",
1220+
if (!PyArg_Parse(state, "(n" Py_PARSE_THREAD_IDENT_T "):_acquire_restore",
12201221
&count, &owner))
12211222
return NULL;
12221223

Modules/clinic/_threadmodule.c.h

Lines changed: 6 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)