Changeset 3a67894 for python/lib


Ignore:
Timestamp:
Mar 18, 2013, 8:05:29 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
53439af
Parents:
4a95f83
Message:

python/lib/gen_pyobject.py: fix shortname of methods with multiple _

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_pyobject.py

    r4a95f83 r3a67894  
    478478""" % {'funcname': method_name, 'objname': name,
    479479        '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]
    481481        method_defs += """\
    482482  {"%(shortname)s", (PyCFunction) Py%(method_name)s,
     
    494494        getter_args = "self->o"
    495495        returnval = "(PyObject *)" + aubiovectopyobj[out_type] + " (tmp)"
    496         shortname = method_name.split(name+'_')[-1]
     496        shortname = method_name.split('aubio_'+name+'_')[-1]
    497497        method_defs += """\
    498498  {"%(shortname)s", (PyCFunction) Py%(method_name)s,
Note: See TracChangeset for help on using the changeset viewer.