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

instead of literal "get" string
This commit is contained in:
Victor Stinner 2013-11-06 23:52:55 +01:00
parent d9d0419a9f
commit e7f516cbb8
1 changed files with 1 additions and 1 deletions

View File

@ -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;