diff Python/ceval.c @ 75852:5fae5be91849

use identifier api
author Benjamin Peterson <benjamin@python.org>
date Tue, 20 Mar 2012 23:17:04 -0400
parents 72556ff86828
children c67f3681e032
line wrap: on
line diff
--- a/Python/ceval.c	Tue Mar 20 16:10:36 2012 -0400
+++ b/Python/ceval.c	Tue Mar 20 23:17:04 2012 -0400
@@ -1837,10 +1837,11 @@
             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) {