]> granicus.if.org Git - python/commitdiff
dictviews_or() uses _Py_identifier
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 13 Oct 2011 20:51:17 +0000 (22:51 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 13 Oct 2011 20:51:17 +0000 (22:51 +0200)
Objects/dictobject.c

index 220e621f077d48a5b72bb883215b2e0f5b44f6a4..28c3dc1aead3e42d1e720e928669d83d8bbe9a95 100644 (file)
@@ -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;