mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 23:58:17 +00:00
Don't call instance_methods an array that list all the methods including the class ones.
This commit is contained in:
parent
b0badc3759
commit
5ada6d7444
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue