Skip to content

Commit

Permalink
ditto
Browse files Browse the repository at this point in the history
  • Loading branch information
neonene committed Sep 25, 2024
1 parent 2bc90ce commit d1fae2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5298,7 +5298,7 @@ get_base_by_token_recursive(PyTypeObject *type, void *token)
for (Py_ssize_t i = 0; i < n; i++) {
PyTypeObject *base = _PyType_CAST(PyTuple_GET_ITEM(bases, i));
// The MRO version can slow down if this takes the same approach,
// which affects the similar loop in PyType_GetModuleByDef().
// which also affects the same conditions in the functions above.
if (PyType_GetSlot(base, Py_tp_token) == token) {
return base;
}
Expand Down

0 comments on commit d1fae2f

Please sign in to comment.