revlog: migrate from PyEval_CallObject to PyObject_Call
The former was deprecated in 3.9.0.
Differential Revision: https://phab.mercurial-scm.org/D9791
--- a/mercurial/cext/revlog.c Fri Jan 15 12:52:52 2021 -0500
+++ b/mercurial/cext/revlog.c Fri Jan 15 12:56:25 2021 -0500
@@ -498,7 +498,7 @@
return -1;
}
- result = PyEval_CallObject(filter, arglist);
+ result = PyObject_Call(filter, arglist, NULL);
Py_DECREF(arglist);
if (!result) {
return -1;