# HG changeset patch # User Gregory Szorc # Date 1645397010 25200 # Node ID 9b0f173445d16b796603ae57a0dea1f9bb38062f # Parent 92c430e7e37a3215791dc8741e53b7624245ea16 cext: unconditionally use PyLong_FromLong() We no longer support Python 2. Differential Revision: https://phab.mercurial-scm.org/D12223 diff -r 92c430e7e37a -r 9b0f173445d1 mercurial/cext/dirs.c --- a/mercurial/cext/dirs.c Sun Feb 20 15:42:47 2022 -0700 +++ b/mercurial/cext/dirs.c Sun Feb 20 15:43:30 2022 -0700 @@ -100,11 +100,7 @@ } /* Force Python to not reuse a small shared int. */ -#ifdef IS_PY3K val = PyLong_FromLong(0x1eadbeef); -#else - val = PyInt_FromLong(0x1eadbeef); -#endif if (val == NULL) goto bail;