changeset 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 92c430e7e37a
children be3af7eb2bbb
files mercurial/cext/dirs.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
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;