summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index dd2d580..4825e9b 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -780,7 +780,7 @@ docompare(PyObject *x, PyObject *y, PyObject *compare)
Py_INCREF(y);
PyTuple_SET_ITEM(args, 0, x);
PyTuple_SET_ITEM(args, 1, y);
- res = PyEval_CallObject(compare, args);
+ res = PyObject_Call(compare, args, NULL);
Py_DECREF(args);
if (res == NULL)
return CMPERROR;