changeset 48819:bf6cdda979ed

cext: unconditionalize PYLONG_VALUE() We only support Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12230
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 16:13:23 -0700
parents 13d705c98914
children acf9f778e048
files mercurial/cext/dirs.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cext/dirs.c	Sun Feb 20 15:50:46 2022 -0700
+++ b/mercurial/cext/dirs.c	Sun Feb 20 16:13:23 2022 -0700
@@ -13,11 +13,7 @@
 
 #include "util.h"
 
-#ifdef IS_PY3K
 #define PYLONG_VALUE(o) ((PyLongObject *)o)->ob_digit[0]
-#else
-#define PYLONG_VALUE(o) PyInt_AS_LONG(o)
-#endif
 
 /*
  * This is a multiset of directory names, built from the files that