Issue #19512: _count_elements() of _collections reuses PyId_get identifier
instead of literal "get" string
This commit is contained in:
parent
d9d0419a9f
commit
e7f516cbb8
|
@ -1816,7 +1816,7 @@ _count_elements(PyObject *self, PyObject *args)
|
|||
Py_DECREF(key);
|
||||
}
|
||||
} else {
|
||||
bound_get = PyObject_GetAttrString(mapping, "get");
|
||||
bound_get = _PyObject_GetAttrId(mapping, &PyId_get);
|
||||
if (bound_get == NULL)
|
||||
goto done;
|
||||
|
||||
|
|
Loading…
Reference in New Issue