Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    rdad51ce r50853b0  
    3131    'pitchyin',
    3232    'pitchyinfft',
     33    'pitchyinfast',
    3334    'sink',
    3435    'sink_apple_audio',
     
    118119        if i >= len(cpp_output):
    119120            break
    120         if ('{' in cpp_output[i - 1]) and (not '}' in cpp_output[i - 1]) or (not ';' in cpp_output[i - 1]):
     121        if ('{' in cpp_output[i - 1]) and ('}' not in cpp_output[i - 1]) or (';' not in cpp_output[i - 1]):
    121122            cpp_output[i] = cpp_output[i - 1] + ' ' + cpp_output[i]
    122123            cpp_output.pop(i - 1)
     
    137138
    138139def get_cpp_objects_from_c_declarations(c_declarations, skip_objects=None):
    139     if skip_objects == None:
     140    if skip_objects is None:
    140141        skip_objects = default_skip_objects
    141142    typedefs = filter(lambda y: y.startswith('typedef struct _aubio'), c_declarations)
     
    145146
    146147
    147 def get_all_func_names_from_lib(lib, depth=0):
     148def get_all_func_names_from_lib(lib):
    148149    ''' return flat string of all function used in lib
    149150    '''
    150151    res = []
    151     indent = " " * depth
    152     for k, v in lib.items():
     152    for _, v in lib.items():
    153153        if isinstance(v, dict):
    154             res += get_all_func_names_from_lib(v, depth + 1)
     154            res += get_all_func_names_from_lib(v)
    155155        elif isinstance(v, list):
    156156            for elem in v:
Note: See TracChangeset for help on using the changeset viewer.