mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +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
|
|
@ -364,7 +364,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw)
|
|||
PyObject *closure = Py_None;
|
||||
PyFunctionObject *newfunc;
|
||||
Py_ssize_t nfree, nclosure;
|
||||
static const char *kwlist[] = {"code", "globals", "name",
|
||||
static char *kwlist[] = {"code", "globals", "name",
|
||||
"argdefs", "closure", 0};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "O!O!|OOO:function",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue