Skip to content

Commit 1619864

Browse files
committed
add assert
1 parent 28bc351 commit 1619864

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10860,6 +10860,7 @@ slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
1086010860
_PyThreadState_PopCStackRef(tstate, &c_stackref);
1086110861
return NULL;
1086210862
}
10863+
assert(meth_found);
1086310864
func = PyStackRef_AsPyObjectBorrow(c_stackref.ref);
1086410865
assert(func != NULL);
1086510866
result = _PyObject_Call_Prepend(tstate, func, (PyObject *)type, args, kwds);

0 commit comments

Comments
 (0)