diff options
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r-- | Objects/descrobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 046eebdaf3..d664789dd6 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -1299,7 +1299,8 @@ property_init(PyObject *self, PyObject *args, PyObject *kwds) /* if no docstring given and the getter has one, use that one */ if ((doc == NULL || doc == Py_None) && get != NULL) { - PyObject *get_doc = PyObject_GetAttrString(get, "__doc__"); + _Py_identifier(__doc__); + PyObject *get_doc = _PyObject_GetAttrId(get, &PyId___doc__); if (get_doc) { if (Py_TYPE(self) == &PyProperty_Type) { Py_XDECREF(prop->prop_doc); |