cext: unconditionalize PYLONG_VALUE()
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Feb 2022 16:13:23 -0700
changeset 48819 bf6cdda979ed
parent 48818 13d705c98914
child 48820 acf9f778e048
cext: unconditionalize PYLONG_VALUE() We only support Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12230
mercurial/cext/dirs.c
--- 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