mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-106521: Remove _PyObject_LookupAttr() function (GH-106642)
This commit is contained in:
parent
e8ab0096a5
commit
be1b968dc1
45 changed files with 351 additions and 352 deletions
|
|
@ -2154,7 +2154,7 @@ mutablemapping_update_arg(PyObject *self, PyObject *arg)
|
|||
return res;
|
||||
}
|
||||
PyObject *func;
|
||||
if (_PyObject_LookupAttr(arg, &_Py_ID(keys), &func) < 0) {
|
||||
if (PyObject_GetOptionalAttr(arg, &_Py_ID(keys), &func) < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (func != NULL) {
|
||||
|
|
@ -2186,7 +2186,7 @@ mutablemapping_update_arg(PyObject *self, PyObject *arg)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
if (_PyObject_LookupAttr(arg, &_Py_ID(items), &func) < 0) {
|
||||
if (PyObject_GetOptionalAttr(arg, &_Py_ID(items), &func) < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (func != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue