revlog: migrate from PyEval_CallObject to PyObject_Call
authorAugie Fackler <augie@google.com>
Fri, 15 Jan 2021 12:56:25 -0500
changeset 46260 abba2d365373
parent 46259 4e85439c1760
child 46261 c9b2a4d69e66
revlog: migrate from PyEval_CallObject to PyObject_Call The former was deprecated in 3.9.0. Differential Revision: https://phab.mercurial-scm.org/D9791
mercurial/cext/revlog.c
--- 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;