Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -477,7 +477,7 @@ Py%(funcname)s (Py_%(objname)s *self, PyObject *args) · 476 unmodified lines | ||
| 477 | 477 | } |
| 478 | 478 | """ % {'funcname': method_name, 'objname': name, |
| 479 | 479 | 'out_type': out_type, 'setter_args': setter_args, 'parse_args': parse_args } |
| 480 | − shortname = method_name.split(name+'_')[-1] | |
| 480 | + shortname = method_name.split('aubio_'+name+'_')[-1] | |
| 481 | 481 | method_defs += """\ |
| 482 | 482 | {"%(shortname)s", (PyCFunction) Py%(method_name)s, |
| 483 | 483 | METH_VARARGS, ""}, |
| @@ -493,7 +493,7 @@ Py%(funcname)s (Py_%(objname)s *self, PyObject *args) · 9 unmodified lines | ||
| 493 | 493 | "get method has more than one parameter %s" % params |
| 494 | 494 | getter_args = "self->o" |
| 495 | 495 | returnval = "(PyObject *)" + aubiovectopyobj[out_type] + " (tmp)" |
| 496 | − shortname = method_name.split(name+'_')[-1] | |
| 496 | + shortname = method_name.split('aubio_'+name+'_')[-1] | |
| 497 | 497 | method_defs += """\ |
| 498 | 498 | {"%(shortname)s", (PyCFunction) Py%(method_name)s, |
| 499 | 499 | METH_NOARGS, ""}, |