Patchwork D9791: revlog: migrate from PyEval_CallObject to PyObject_Call

login
register
mail settings
Submitter phabricator
Date Jan. 15, 2021, 5:58 p.m.
Message ID <differential-rev-PHID-DREV-vki4a5yefv3gk534ws77-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48102/
State Superseded
Headers show

Comments

phabricator - Jan. 15, 2021, 5:58 p.m.
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The former was deprecated in 3.9.0.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9791

AFFECTED FILES
  mercurial/cext/revlog.c

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -498,7 +498,7 @@ 
 			return -1;
 		}
 
-		result = PyEval_CallObject(filter, arglist);
+		result = PyObject_Call(filter, arglist, NULL);
 		Py_DECREF(arglist);
 		if (!result) {
 			return -1;