Skip to content

Commit

Permalink
pythongh-112087: Remove duplicated critical_section
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jan 18, 2024
1 parent 72abb8c commit c40c59f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,9 @@ list_insert_impl(PyListObject *self, Py_ssize_t index, PyObject *object)
/*[clinic end generated code: output=7f35e32f60c8cb78 input=b1987ca998a4ae2d]*/
{
PyObject *ret = Py_None;
Py_BEGIN_CRITICAL_SECTION(self);
if (ins1(self, index, object) < 0) {
ret = NULL;
Py_RETURN_NONE
}
Py_END_CRITICAL_SECTION();
return ret;
}

Expand Down

0 comments on commit c40c59f

Please sign in to comment.