Skip to content

Commit 7593145

Browse files
__exit__ args are required
1 parent 5258361 commit 7593145

File tree

2 files changed

+19
-39
lines changed

2 files changed

+19
-39
lines changed

Modules/_threadmodule.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,9 @@ _thread_lock___enter___impl(lockobject *self)
927927

928928
/*[clinic input]
929929
_thread.lock.__exit__
930-
exc_type: object = None
931-
exc_value: object = None
932-
exc_tb: object = None
930+
exc_type: object
931+
exc_value: object
932+
exc_tb: object
933933
/
934934
935935
Release the lock.
@@ -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=ff605bf967310447]*/
941+
/*[clinic end generated code: output=c9e8eefa69beed07 input=f1f539437b055547]*/
942942
{
943943
return _thread_lock_release_impl(self);
944944
}
@@ -1171,9 +1171,9 @@ _thread_RLock_release_impl(rlockobject *self)
11711171

11721172
/*[clinic input]
11731173
_thread.RLock.__exit__
1174-
exc_type: object = None
1175-
exc_value: object = None
1176-
exc_tb: object = None
1174+
exc_type: object
1175+
exc_value: object
1176+
exc_tb: object
11771177
/
11781178
11791179
Release the lock.
@@ -1183,7 +1183,7 @@ Release the lock.
11831183
static PyObject *
11841184
_thread_RLock___exit___impl(rlockobject *self, PyObject *exc_type,
11851185
PyObject *exc_value, PyObject *exc_tb)
1186-
/*[clinic end generated code: output=79bb44d551aedeb5 input=99d5cb8c7cef3077]*/
1186+
/*[clinic end generated code: output=79bb44d551aedeb5 input=79accf0778d91002]*/
11871187
{
11881188
return _thread_RLock_release_impl(self);
11891189
}

Modules/clinic/_threadmodule.c.h

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

0 commit comments

Comments
 (0)