Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Oct 8, 2024
1 parent a7ad2f8 commit 8b3435c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Modules/_threadmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,7 @@ lock_PyThread_acquire_lock(PyObject *op, PyObject *args, PyObject *kwds)

PyLockStatus r = _PyMutex_LockTimed(&self->lock, timeout,
_PY_LOCK_HANDLE_SIGNALS | _PY_LOCK_DETACH);
if (r == PY_LOCK_INTR)
{
if (r == PY_LOCK_INTR) {
return NULL;
}

Expand Down Expand Up @@ -932,7 +931,7 @@ static PyMethodDef lock_methods[] = {
{"__exit__", lock_PyThread_release_lock,
METH_VARARGS, lock_exit_doc},
#ifdef HAVE_FORK
{"_at_fork_reinit", (PyCFunction)lock__at_fork_reinit,
{"_at_fork_reinit", lock__at_fork_reinit,
METH_NOARGS, NULL},
#endif
{NULL, NULL} /* sentinel */
Expand Down

0 comments on commit 8b3435c

Please sign in to comment.