diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-03-21 20:27:33 +0100 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-03-21 20:27:33 +0100 |
commit | 04fb08f6907c8e00947435e346c919da313116a6 (patch) | |
tree | 1ffc01b2cb2e8495109f549d25e159e2a02be572 /Python | |
parent | 7cc5521d402316cd4faaa9442f323b3a946ad44b (diff) | |
parent | 1da08e77dff8ba59c87e8f0473a00f7df21a806f (diff) | |
download | cpython-git-04fb08f6907c8e00947435e346c919da313116a6.tar.gz |
Merge.
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 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) { |