# HG changeset patch # User Gregory Szorc # Date 1645398803 25200 # Node ID bf6cdda979ed41a0dd2d276b0318c5748d05b973 # Parent 13d705c98914fe42530d11ea7655d1aa9c4bac51 cext: unconditionalize PYLONG_VALUE() We only support Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12230 diff -r 13d705c98914 -r bf6cdda979ed 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