

def process_errors(self, errors):
    lp = [re.compile('.*?0:(\\d+): (.*)'), re.compile('0\\((\\d+)\\) :[^:]*: (.*)')]
    linesOut = []
    for line in errors.split('\n'):
        result = None
        for p in lp:
            result = p.match(line)
            if result:
                linesOut.append(('%s(%d): error: %s' % (self._filename, (int(result.group(1)) - preamble_lines), result.group(2))))
                break
        if (not result):
            linesOut.append(line)
    return '\n'.join(linesOut)

dataset/ETHPy150Open alexjc/shadertoy-render/shadertoy-render.py RenderingCanvas.process_errors/original