diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 22:52:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-06 22:52:55 (GMT) |
commit | e7f516cbb8d446abe1f5c544afa8de1fe5dbb7bc (patch) | |
tree | 5337b62bf49a2698d9217aac47217f95e30ca8de /Modules/_collectionsmodule.c | |
parent | d9d0419a9fc85d1f4c8744f68156fd6b305d5ff0 (diff) | |
download | cpython-e7f516cbb8d446abe1f5c544afa8de1fe5dbb7bc.zip cpython-e7f516cbb8d446abe1f5c544afa8de1fe5dbb7bc.tar.gz cpython-e7f516cbb8d446abe1f5c544afa8de1fe5dbb7bc.tar.bz2 |
Issue #19512: _count_elements() of _collections reuses PyId_get identifier
instead of literal "get" string
Diffstat (limited to 'Modules/_collectionsmodule.c')
-rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |