From: Benjamin Peterson Date: Wed, 21 Mar 2012 03:17:04 +0000 (-0400) Subject: use identifier api X-Git-Tag: v3.3.0a2~97^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=302e7902c89f4bb2f31a0333d05bde26c4f3a0c2;p=thirdparty%2FPython%2Fcpython.git use identifier api --- diff --git a/Python/ceval.c b/Python/ceval.c index 54980565bf6e..418237807af9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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) {