diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-12 05:57:10 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-12 05:57:10 (GMT) |
| commit | be1b968dc1e63c3c68e161ddc5a05eb064833440 (patch) | |
| tree | 8689ba9f656854b83bf24b82de4fc471437a51ab /Objects/descrobject.c | |
| parent | e8ab0096a583184fe24dfbc39eff70d270c8e6f4 (diff) | |
| download | cpython-be1b968dc1e63c3c68e161ddc5a05eb064833440.zip cpython-be1b968dc1e63c3c68e161ddc5a05eb064833440.tar.gz cpython-be1b968dc1e63c3c68e161ddc5a05eb064833440.tar.bz2 | |
gh-106521: Remove _PyObject_LookupAttr() function (GH-106642)
Diffstat (limited to 'Objects/descrobject.c')
| -rw-r--r-- | Objects/descrobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index a814902..810bd19 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -1792,7 +1792,7 @@ property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset, } /* if no docstring given and the getter has one, use that one */ else if (fget != NULL) { - int rc = _PyObject_LookupAttr(fget, &_Py_ID(__doc__), &prop_doc); + int rc = PyObject_GetOptionalAttr(fget, &_Py_ID(__doc__), &prop_doc); if (rc <= 0) { return rc; } |
