Skip to content

Commit b1b9085

Browse files
authored
Apply suggestions from code review
1 parent 1619864 commit b1b9085

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10854,13 +10854,12 @@ slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
1085410854

1085510855
_PyCStackRef c_stackref;
1085610856
_PyThreadState_PushCStackRef(tstate, &c_stackref);
10857-
int meth_found = _PyObject_GetMethodStackRef(tstate, (PyObject *)type, &_Py_ID(__new__), &c_stackref.ref);
10857+
_PyObject_GetMethodStackRef(tstate, (PyObject *)type, &_Py_ID(__new__), &c_stackref.ref);
1085810858

1085910859
if (PyStackRef_IsNull(c_stackref.ref)) {
1086010860
_PyThreadState_PopCStackRef(tstate, &c_stackref);
1086110861
return NULL;
1086210862
}
10863-
assert(meth_found);
1086410863
func = PyStackRef_AsPyObjectBorrow(c_stackref.ref);
1086510864
assert(func != NULL);
1086610865
result = _PyObject_Call_Prepend(tstate, func, (PyObject *)type, args, kwds);

0 commit comments

Comments
 (0)