def check_input(input_files):
    js_files = []
    html_files = []
    for f in input_files:
        ext = splitext(f)[1]
        if ext in [ '.js', '.jsinc' ]:
            js_files.append(f)
        elif ext in [ '.html', '.htm' ]:
            html_files.append(f)
        else:
            LOG.error("unrecognised file type: %s", f)
            exit(1)

    return (js_files, html_files)
Internally consolidate chunks of data
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/makehtml.py/check_input--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/sparse/list.py/SparseList.consolidate