diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-03-20 23:17:04 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-03-20 23:17:04 -0400 |
| commit | c177108b1d0ce7611272b5e1527738f7d9794b4e (patch) | |
| tree | 9880fa9e5f3d7318ba7b2068a0bfc7faaf3dde5c /Python/ceval.c | |
| parent | d788bc345ffa5135cb2328886ff7dbe1e1749e30 (diff) | |
| download | cpython-c177108b1d0ce7611272b5e1527738f7d9794b4e.tar.gz | |
use identifier api
Diffstat (limited to 'Python/ceval.c')
| -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 54980565bf..418237807a 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) { |
