def _parse_lines(lines):
    results = []
    acc = []
    for line in lines:
        if line.startswith("  File"):
            # Accumulate traceback lines
            acc.append(line)
        elif line.startswith("    ") and acc:
            # Accumulate slitted traceback lines
            acc.append(line)
        else:
            if acc:
                # Traceback lines were accumulated. Find the last line starting
                # with "File  " and mark it.
                for i, l in enumerate(reversed(acc)):
                    if l.startswith("  File"):
                        acc[-(1 + i)] = "*" + l
                        break
                # Inject in results and reset accumulation
                results.extend(acc)
                acc = []
            results.append(line)
    return results
Parse a list of lines from nose output.  Mark the last item of a
dataset/ETHPy150Open okcompute/vim-nose/compiler/nose.py/_parse_lines