mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Revert backwards-incompatible const changes.
This commit is contained in:
parent
f9f61b4aa2
commit
15e62742fa
36 changed files with 71 additions and 70 deletions
|
@ -675,7 +675,7 @@ profiler_enable(ProfilerObject *self, PyObject *args, PyObject *kwds)
|
|||
{
|
||||
int subcalls = -1;
|
||||
int builtins = -1;
|
||||
static const char *kwlist[] = {"subcalls", "builtins", 0};
|
||||
static char *kwlist[] = {"subcalls", "builtins", 0};
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|ii:enable",
|
||||
kwlist, &subcalls, &builtins))
|
||||
return NULL;
|
||||
|
@ -758,7 +758,7 @@ profiler_init(ProfilerObject *pObj, PyObject *args, PyObject *kw)
|
|||
#else
|
||||
int builtins = 0;
|
||||
#endif
|
||||
static const char *kwlist[] = {"timer", "timeunit",
|
||||
static char *kwlist[] = {"timer", "timeunit",
|
||||
"subcalls", "builtins", 0};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "|Odii:Profiler", kwlist,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue