cext: unconditionally use PyLong_FromLong()
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Feb 2022 15:43:30 -0700
changeset 48812 9b0f173445d1
parent 48811 92c430e7e37a
child 48813 be3af7eb2bbb
cext: unconditionally use PyLong_FromLong() We no longer support Python 2. Differential Revision: https://phab.mercurial-scm.org/D12223
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;