Mercurial > hg
diff mercurial/cext/dirs.c @ 48812:9b0f173445d1
cext: unconditionally use PyLong_FromLong()
We no longer support Python 2.
Differential Revision: https://phab.mercurial-scm.org/D12223
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 15:43:30 -0700 |
parents | 83f0e93ec34b |
children | bf6cdda979ed |
line wrap: on
line diff
--- 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;