##// END OF EJS Templates
cext: remove Python 2 support...
Gregory Szorc -
r49671:824b2082 default
parent child Browse files
Show More
@@ -17,7 +17,6 b''
17 #include "charencode.h"
17 #include "charencode.h"
18 #include "util.h"
18 #include "util.h"
19
19
20 #ifdef IS_PY3K
21 /* The mapping of Python types is meant to be temporary to get Python
20 /* The mapping of Python types is meant to be temporary to get Python
22 * 3 to compile. We should remove this once Python 3 support is fully
21 * 3 to compile. We should remove this once Python 3 support is fully
23 * supported and proper types are used in the extensions themselves. */
22 * supported and proper types are used in the extensions themselves. */
@@ -25,13 +24,6 b''
25 #define PyInt_FromLong PyLong_FromLong
24 #define PyInt_FromLong PyLong_FromLong
26 #define PyInt_FromSsize_t PyLong_FromSsize_t
25 #define PyInt_FromSsize_t PyLong_FromSsize_t
27 #define PyInt_AsLong PyLong_AsLong
26 #define PyInt_AsLong PyLong_AsLong
28 #else
29 /* Windows on Python 2.7 doesn't define S_IFLNK. Python 3+ defines via
30 * pyport.h. */
31 #ifndef S_IFLNK
32 #define S_IFLNK 0120000
33 #endif
34 #endif
35
27
36 static const char *const versionerrortext = "Python minor version mismatch";
28 static const char *const versionerrortext = "Python minor version mismatch";
37
29
General Comments 0
You need to be logged in to leave comments. Login now