def group_lines(lines, delimiter):
    if not lines:
        return []
    lines_ = iter(lines)
    delimiter_ = re.compile(delimiter)
    result = []
    result.append([next(lines_)])
    for line in lines_:
        if delimiter_.match(line):
            result.append([])
        result[-1].append(line)
    return result
Ctor.
dataset/ETHPy150Open okcompute/vim-python-tests-runner/compiler/runners/pytest.py/group_lines--crossover with--dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/serializer.py/CBORSerializer.__init__