From e7f516cbb8d446abe1f5c544afa8de1fe5dbb7bc Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 6 Nov 2013 23:52:55 +0100 Subject: Issue #19512: _count_elements() of _collections reuses PyId_get identifier instead of literal "get" string --- Modules/_collectionsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 0cc013b..310e672 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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; -- cgit v0.12