Drop unnecessary version compatibility code.
authorJelmer Vernooij <jelmer@jelmer.uk>
Mon, 1 May 2017 18:58:33 +0000 (18:58 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Mon, 1 May 2017 18:58:33 +0000 (18:58 +0000)
dulwich/_diff_tree.c
dulwich/_objects.c

index 2ea5ced77198ea1c4322b2bd2c67f557811d438d..9679b1afeed3dca5a689989f52c6d9ede309741a 100644 (file)
 typedef unsigned short mode_t;
 #endif
 
-#if (PY_VERSION_HEX < 0x02050000)
-typedef int Py_ssize_t;
-#endif
-
-#if (PY_VERSION_HEX < 0x02060000)
-#define Py_SIZE(ob)             (((PyVarObject*)(ob))->ob_size)
-#endif
-
 #if PY_MAJOR_VERSION >= 3
 #define PyInt_FromLong PyLong_FromLong
 #define PyInt_AsLong PyLong_AsLong
index 049f7dc4e9409f659fa520ba4f358621985e3f89..dce82387dcbf2b90bfc103753c5fc9dad71c6105 100644 (file)
 #include <stdlib.h>
 #include <sys/stat.h>
 
-#if (PY_VERSION_HEX < 0x02050000)
-typedef int Py_ssize_t;
-#endif
-
 #if PY_MAJOR_VERSION >= 3
 #define PyInt_Check(obj) 0
 #define PyInt_CheckExact(obj) 0