diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-03-21 03:17:04 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-03-21 03:17:04 (GMT) |
commit | 302e7902c89f4bb2f31a0333d05bde26c4f3a0c2 (patch) | |
tree | 6442f27d5d6fd2c46e641d3192f7c61da63b2ed6 /Python | |
parent | b4dcb1051441a63ec13aa263484b20d64b935a4b (diff) | |
download | cpython-302e7902c89f4bb2f31a0333d05bde26c4f3a0c2.zip cpython-302e7902c89f4bb2f31a0333d05bde26c4f3a0c2.tar.gz cpython-302e7902c89f4bb2f31a0333d05bde26c4f3a0c2.tar.bz2 |
use identifier api
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 5498056..4182378 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) { |