@@ -2010,7 +2010,7 @@ pattern_match(PatternObject* self, PyObject* args, PyObject* kw)
20102010 PyObject * string ;
20112011 int start = 0 ;
20122012 int end = INT_MAX ;
2013- static const char * kwlist [] = { "pattern" , "pos" , "endpos" , NULL };
2013+ static char * kwlist [] = { "pattern" , "pos" , "endpos" , NULL };
20142014 if (!PyArg_ParseTupleAndKeywords (args , kw , "O|ii:match" , kwlist ,
20152015 & string , & start , & end ))
20162016 return NULL ;
@@ -2047,7 +2047,7 @@ pattern_search(PatternObject* self, PyObject* args, PyObject* kw)
20472047 PyObject * string ;
20482048 int start = 0 ;
20492049 int end = INT_MAX ;
2050- static const char * kwlist [] = { "pattern" , "pos" , "endpos" , NULL };
2050+ static char * kwlist [] = { "pattern" , "pos" , "endpos" , NULL };
20512051 if (!PyArg_ParseTupleAndKeywords (args , kw , "O|ii:search" , kwlist ,
20522052 & string , & start , & end ))
20532053 return NULL ;
@@ -2188,7 +2188,7 @@ pattern_findall(PatternObject* self, PyObject* args, PyObject* kw)
21882188 PyObject * string ;
21892189 int start = 0 ;
21902190 int end = INT_MAX ;
2191- static const char * kwlist [] = { "source" , "pos" , "endpos" , NULL };
2191+ static char * kwlist [] = { "source" , "pos" , "endpos" , NULL };
21922192 if (!PyArg_ParseTupleAndKeywords (args , kw , "O|ii:findall" , kwlist ,
21932193 & string , & start , & end ))
21942194 return NULL ;
@@ -2314,7 +2314,7 @@ pattern_split(PatternObject* self, PyObject* args, PyObject* kw)
23142314
23152315 PyObject * string ;
23162316 int maxsplit = 0 ;
2317- static const char * kwlist [] = { "source" , "maxsplit" , NULL };
2317+ static char * kwlist [] = { "source" , "maxsplit" , NULL };
23182318 if (!PyArg_ParseTupleAndKeywords (args , kw , "O|i:split" , kwlist ,
23192319 & string , & maxsplit ))
23202320 return NULL ;
@@ -2598,7 +2598,7 @@ pattern_sub(PatternObject* self, PyObject* args, PyObject* kw)
25982598 PyObject * template ;
25992599 PyObject * string ;
26002600 int count = 0 ;
2601- static const char * kwlist [] = { "repl" , "string" , "count" , NULL };
2601+ static char * kwlist [] = { "repl" , "string" , "count" , NULL };
26022602 if (!PyArg_ParseTupleAndKeywords (args , kw , "OO|i:sub" , kwlist ,
26032603 & template , & string , & count ))
26042604 return NULL ;
@@ -2612,7 +2612,7 @@ pattern_subn(PatternObject* self, PyObject* args, PyObject* kw)
26122612 PyObject * template ;
26132613 PyObject * string ;
26142614 int count = 0 ;
2615- static const char * kwlist [] = { "repl" , "string" , "count" , NULL };
2615+ static char * kwlist [] = { "repl" , "string" , "count" , NULL };
26162616 if (!PyArg_ParseTupleAndKeywords (args , kw , "OO|i:subn" , kwlist ,
26172617 & template , & string , & count ))
26182618 return NULL ;
@@ -2919,7 +2919,7 @@ match_groups(MatchObject* self, PyObject* args, PyObject* kw)
29192919 int index ;
29202920
29212921 PyObject * def = Py_None ;
2922- static const char * kwlist [] = { "default" , NULL };
2922+ static char * kwlist [] = { "default" , NULL };
29232923 if (!PyArg_ParseTupleAndKeywords (args , kw , "|O:groups" , kwlist , & def ))
29242924 return NULL ;
29252925
@@ -2948,7 +2948,7 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw)
29482948 int index ;
29492949
29502950 PyObject * def = Py_None ;
2951- static const char * kwlist [] = { "default" , NULL };
2951+ static char * kwlist [] = { "default" , NULL };
29522952 if (!PyArg_ParseTupleAndKeywords (args , kw , "|O:groupdict" , kwlist , & def ))
29532953 return NULL ;
29542954
0 commit comments