gh-106521: Remove _PyObject_LookupAttr() function (GH-106642)
This commit is contained in:
@@ -173,7 +173,7 @@ object_is_not_callable(PyThreadState *tstate, PyObject *callable)
|
||||
goto basic_type_error;
|
||||
}
|
||||
PyObject *attr;
|
||||
int res = _PyObject_LookupAttr(callable, name, &attr);
|
||||
int res = PyObject_GetOptionalAttr(callable, name, &attr);
|
||||
if (res < 0) {
|
||||
_PyErr_Clear(tstate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user