Skip to content

Commit

Permalink
Revert getargsfast change
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Oct 14, 2024
1 parent 66631b9 commit c940d72
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mypyc/lib-rt/getargsfast.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,16 @@ find_keyword(PyObject *kwnames, PyObject *const *kwstack, PyObject *key)
for (i = 0; i < nkwargs; i++) {
PyObject *kwname = PyTuple_GET_ITEM(kwnames, i);
assert(PyUnicode_Check(kwname));
if (PyUnicode_Equal(kwname, key)) {
#if CPY_3_13_FEATURES
if (_PyUnicode_Equal(kwname, key)) {
return kwstack[i];
}
#else
if (_PyUnicode_EQ(kwname, key)) {
return kwstack[i];
}
#endif

}
return NULL;
}
Expand Down

0 comments on commit c940d72

Please sign in to comment.