]> granicus.if.org Git - python/commitdiff
use identifier api
authorBenjamin Peterson <benjamin@python.org>
Wed, 21 Mar 2012 03:17:04 +0000 (23:17 -0400)
committerBenjamin Peterson <benjamin@python.org>
Wed, 21 Mar 2012 03:17:04 +0000 (23:17 -0400)
Python/ceval.c

index 54980565bf6ee22021eaf630d97ac35bd61b9b0b..418237807af9cd8d939b4c1e5bbad79d218ffa6f 100644 (file)
@@ -1837,10 +1837,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
             if (PyGen_CheckExact(x)) {
                 retval = _PyGen_Send((PyGenObject *)x, u);
             } else {
+                _Py_IDENTIFIER(send);
                 if (u == Py_None)
                     retval = PyIter_Next(x);
                 else
-                    retval = PyObject_CallMethod(x, "send", "O", u);
+                    retval = _PyObject_CallMethodId(x, &PyId_send, "O", u);
             }
             Py_DECREF(u);
             if (!retval) {