Skip to content

Commit a4997f8

Browse files
committed
revert typeobject.c
1 parent bf2d1dd commit a4997f8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11184,14 +11184,7 @@ update_one_slot(PyTypeObject *type, pytype_slotdef *p)
1118411184
}
1118511185
else {
1118611186
use_generic = 1;
11187-
if (generic == NULL && Py_IS_TYPE(descr, &PyMethodDescr_Type) &&
11188-
*ptr == ((PyMethodDescrObject *)descr)->d_method->ml_meth)
11189-
{
11190-
generic = *ptr;
11191-
}
11192-
else {
11193-
generic = p->function;
11194-
}
11187+
generic = p->function;
1119511188
if (p->function == slot_tp_call) {
1119611189
/* A generic __call__ is incompatible with vectorcall */
1119711190
type_clear_flags(type, Py_TPFLAGS_HAVE_VECTORCALL);

0 commit comments

Comments
 (0)