From d1a9cc29b9b737b63d953f6ff9464280d273c429 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 13 Oct 2011 22:51:17 +0200 Subject: dictviews_or() uses _Py_identifier --- Objects/dictobject.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 220e621..28c3dc1 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2747,10 +2747,12 @@ dictviews_or(PyObject* self, PyObject *other) { PyObject *result = PySet_New(self); PyObject *tmp; + _Py_identifier(update); + if (result == NULL) return NULL; - tmp = PyObject_CallMethod(result, "update", "O", other); + tmp = _PyObject_CallMethodId(result, &PyId_update, "O", other); if (tmp == NULL) { Py_DECREF(result); return NULL; -- cgit v0.12