Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jul 7, 2024
1 parent e9b98d7 commit c8ce3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypyc/lib-rt/pythonsupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ update_bases(PyObject *bases)
}
continue;
}
if (_PyObject_LookupAttrId(base, &PyId___mro_entries__, &meth) < 0) {
if (PyObject_GetOptionalAttrString(base, PyId___mro_entries__.string, &meth) < 0) {
goto error;
}
if (!meth) {
Expand Down Expand Up @@ -381,7 +381,7 @@ _CPyDictView_New(PyObject *dict, PyTypeObject *type)
static int
_CPyObject_HasAttrId(PyObject *v, _Py_Identifier *name) {
PyObject *tmp = NULL;
int result = _PyObject_LookupAttrId(v, name, &tmp);
int result = PyObject_GetOptionalAttrString(v, name->string, &tmp);
if (tmp) {
Py_DECREF(tmp);
}
Expand Down

0 comments on commit c8ce3c5

Please sign in to comment.