@@ -70,10 +70,6 @@ static char copyright[] =
7070/* enables copy/deepcopy handling (work in progress) */
7171#undef USE_BUILTIN_COPY
7272
73- #if PY_VERSION_HEX < 0x01060000
74- #define PyObject_DEL (op ) PyMem_DEL((op))
75- #endif
76-
7773/* -------------------------------------------------------------------- */
7874
7975#if defined(_MSC_VER )
@@ -1993,10 +1989,8 @@ join_list(PyObject* list, PyObject* string)
19931989 /* join list elements */
19941990
19951991 PyObject * joiner ;
1996- #if PY_VERSION_HEX >= 0x01060000
19971992 PyObject * function ;
19981993 PyObject * args ;
1999- #endif
20001994 PyObject * result ;
20011995
20021996 joiner = PySequence_GetSlice (string , 0 , 0 );
@@ -2008,7 +2002,6 @@ join_list(PyObject* list, PyObject* string)
20082002 return joiner ;
20092003 }
20102004
2011- #if PY_VERSION_HEX >= 0x01060000
20122005 function = PyObject_GetAttrString (joiner , "join" );
20132006 if (!function ) {
20142007 Py_DECREF (joiner );
@@ -2024,12 +2017,6 @@ join_list(PyObject* list, PyObject* string)
20242017 result = PyObject_CallObject (function , args );
20252018 Py_DECREF (args ); /* also removes list */
20262019 Py_DECREF (function );
2027- #else
2028- result = call (
2029- "string" , "join" ,
2030- PyTuple_Pack (2 , list , joiner )
2031- );
2032- #endif
20332020 Py_DECREF (joiner );
20342021
20352022 return result ;
@@ -2136,7 +2123,6 @@ pattern_findall(PatternObject* self, PyObject* args, PyObject* kw)
21362123
21372124}
21382125
2139- #if PY_VERSION_HEX >= 0x02020000
21402126static PyObject *
21412127pattern_finditer (PatternObject * pattern , PyObject * args , PyObject * kw )
21422128{
@@ -2158,7 +2144,6 @@ pattern_finditer(PatternObject* pattern, PyObject* args, PyObject* kw)
21582144
21592145 return iterator ;
21602146}
2161- #endif
21622147
21632148static PyObject *
21642149pattern_split (PatternObject * self , PyObject * args , PyObject * kw )
@@ -2581,10 +2566,8 @@ static PyMethodDef pattern_methods[] = {
25812566 pattern_split_doc },
25822567 {"findall" , (PyCFunction ) pattern_findall , METH_VARARGS |METH_KEYWORDS ,
25832568 pattern_findall_doc },
2584- #if PY_VERSION_HEX >= 0x02020000
25852569 {"finditer" , (PyCFunction ) pattern_finditer , METH_VARARGS |METH_KEYWORDS ,
25862570 pattern_finditer_doc },
2587- #endif
25882571 {"scanner" , (PyCFunction ) pattern_scanner , METH_VARARGS |METH_KEYWORDS },
25892572 {"__copy__" , (PyCFunction ) pattern_copy , METH_NOARGS },
25902573 {"__deepcopy__" , (PyCFunction ) pattern_deepcopy , METH_O },
0 commit comments