Commit 5ada6d74 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Don't call instance_methods an array that list all the methods including the class ones.

parent b0badc37
......@@ -107,7 +107,7 @@ static PyObject * pylinphone_{{class_name}}_instance_method_{{method_name}}(PyOb
{{/class_instance_methods}}
static PyMethodDef pylinphone_{{class_name}}_instance_methods[] = {
static PyMethodDef pylinphone_{{class_name}}_methods[] = {
/* Class methods */
{{#class_type_hand_written_methods}}
{ "{{method_name}}", pylinphone_{{class_name}}_class_method_{{method_name}}, METH_VARARGS | METH_CLASS, "" },
......@@ -176,7 +176,7 @@ static PyTypeObject pylinphone_{{class_name}}Type = {
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
pylinphone_{{class_name}}_instance_methods, /* tp_methods */
pylinphone_{{class_name}}_methods, /* tp_methods */
0, /* tp_members */
pylinphone_{{class_name}}_getseters, /* tp_getset */
0, /* tp_base */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment