Commit 1253f132 authored by Victor Stinner's avatar Victor Stinner

Issue #19512: _count_elements() of _collections reuses PyId_get identifier

instead of literal "get" string
parent 98e0537e
...@@ -1816,7 +1816,7 @@ _count_elements(PyObject *self, PyObject *args) ...@@ -1816,7 +1816,7 @@ _count_elements(PyObject *self, PyObject *args)
Py_DECREF(key); Py_DECREF(key);
} }
} else { } else {
bound_get = PyObject_GetAttrString(mapping, "get"); bound_get = _PyObject_GetAttrId(mapping, &PyId_get);
if (bound_get == NULL) if (bound_get == NULL)
goto done; goto done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment