Kaydet (Commit) 302e7902 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

use identifier api

üst b4dcb105
...@@ -1837,10 +1837,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) ...@@ -1837,10 +1837,11 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
if (PyGen_CheckExact(x)) { if (PyGen_CheckExact(x)) {
retval = _PyGen_Send((PyGenObject *)x, u); retval = _PyGen_Send((PyGenObject *)x, u);
} else { } else {
_Py_IDENTIFIER(send);
if (u == Py_None) if (u == Py_None)
retval = PyIter_Next(x); retval = PyIter_Next(x);
else else
retval = PyObject_CallMethod(x, "send", "O", u); retval = _PyObject_CallMethodId(x, &PyId_send, "O", u);
} }
Py_DECREF(u); Py_DECREF(u);
if (!retval) { if (!retval) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment