mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +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
|
@ -943,7 +943,7 @@ static int
|
|||
functools_copy_attr(PyObject *wrapper, PyObject *wrapped, PyObject *name)
|
||||
{
|
||||
PyObject *value;
|
||||
int res = _PyObject_LookupAttr(wrapped, name, &value);
|
||||
int res = PyObject_GetOptionalAttr(wrapped, name, &value);
|
||||
if (value != NULL) {
|
||||
res = PyObject_SetAttr(wrapper, name, value);
|
||||
Py_DECREF(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue