# HG changeset patch # User Gregory Szorc # Date 2022-02-20 22:43:30 # 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 --git a/mercurial/cext/dirs.c b/mercurial/cext/dirs.c --- a/mercurial/cext/dirs.c +++ b/mercurial/cext/dirs.c @@ -100,11 +100,7 @@ static int _addpath(PyObject *dirs, PyOb } /* 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;