changeset 48816:824b2082550e

cext: remove Python 2 support We still alias the Python 2 symbols. This will be cleaned up in a separate commit. Differential Revision: https://phab.mercurial-scm.org/D12227
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 15:47:13 -0700
parents e9ca736f5b52
children c1ad4364a5b5
files mercurial/cext/parsers.c
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cext/parsers.c	Sun Feb 20 15:45:51 2022 -0700
+++ b/mercurial/cext/parsers.c	Sun Feb 20 15:47:13 2022 -0700
@@ -17,7 +17,6 @@
 #include "charencode.h"
 #include "util.h"
 
-#ifdef IS_PY3K
 /* The mapping of Python types is meant to be temporary to get Python
  * 3 to compile. We should remove this once Python 3 support is fully
  * supported and proper types are used in the extensions themselves. */
@@ -25,13 +24,6 @@
 #define PyInt_FromLong PyLong_FromLong
 #define PyInt_FromSsize_t PyLong_FromSsize_t
 #define PyInt_AsLong PyLong_AsLong
-#else
-/* Windows on Python 2.7 doesn't define S_IFLNK. Python 3+ defines via
- * pyport.h. */
-#ifndef S_IFLNK
-#define S_IFLNK 0120000
-#endif
-#endif
 
 static const char *const versionerrortext = "Python minor version mismatch";