Ticket #3776: patchfile.patch
File patchfile.patch, 756 bytes (added by , 13 years ago) |
---|
-
class.cpp
76 76 static int property_init(PyObject *self, PyObject *args, PyObject *kwds) 77 77 { 78 78 PyObject *get = NULL, *set = NULL, *del = NULL, *doc = NULL; 79 static c har *kwlist[] = {"fget", "fset", "fdel", "doc", 0};79 static const char *kwlist[] = {"fget", "fset", "fdel", "doc", 0}; 80 80 propertyobject *prop = (propertyobject *)self; 81 81 82 82 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOOO:property", 83 kwlist, &get, &set, &del, &doc))83 const_cast<char **>(kwlist), &get, &set, &del, &doc)) 84 84 return -1; 85 85 86 86 if (get == Py_None)