changeset 46260:abba2d365373

revlog: migrate from PyEval_CallObject to PyObject_Call The former was deprecated in 3.9.0. Differential Revision: https://phab.mercurial-scm.org/D9791
author Augie Fackler <augie@google.com>
date Fri, 15 Jan 2021 12:56:25 -0500
parents 4e85439c1760
children c9b2a4d69e66
files mercurial/cext/revlog.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;