diff options
Diffstat (limited to 'Objects/weakrefobject.c')
-rw-r--r-- | Objects/weakrefobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index 39c5db2b19..4a64ef7cc2 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -126,9 +126,9 @@ gc_clear(PyWeakReference *self) static PyObject * weakref_call(PyWeakReference *self, PyObject *args, PyObject *kw) { - static const char *argnames[] = {NULL}; + static char *kwlist[] = {NULL}; - if (PyArg_ParseTupleAndKeywords(args, kw, ":__call__", argnames)) { + if (PyArg_ParseTupleAndKeywords(args, kw, ":__call__", kwlist)) { PyObject *object = PyWeakref_GET_OBJECT(self); Py_INCREF(object); return (object); |