summaryrefslogtreecommitdiff
path: root/simplejson/_speedups.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-08 18:18:48 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2017-05-08 18:18:48 +0300
commitb715bfee8f04d7b46fba62ec9d9ab95fe1a61ffd (patch)
tree1bfa9feced89238e4c1cfa6cad01f098ea33e6dc /simplejson/_speedups.c
parentf1a06fc7598f324acee332b02b6ecc43773b7b5d (diff)
downloadsimplejson-b715bfee8f04d7b46fba62ec9d9ab95fe1a61ffd.tar.gz
Remofe remnants of Python 2.4 support.no-py2.4
Clean up the code by removing workarounds for supporting Python 2.4.
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r--simplejson/_speedups.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index 2d81063..1c39a50 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -68,19 +68,6 @@ json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exce
#endif
#endif /* PY_VERSION_HEX < 0x02060000 */
-#if PY_VERSION_HEX < 0x02050000
-#if !defined(PY_SSIZE_T_MIN)
-typedef int Py_ssize_t;
-#define PY_SSIZE_T_MAX INT_MAX
-#define PY_SSIZE_T_MIN INT_MIN
-#define PyInt_FromSsize_t PyInt_FromLong
-#define PyInt_AsSsize_t PyInt_AsLong
-#endif
-#if !defined(Py_IS_FINITE)
-#define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
-#endif
-#endif /* PY_VERSION_HEX < 0x02050000 */
-
#ifdef __GNUC__
#define UNUSED __attribute__((__unused__))
#else