

def parse_stream(self, stream, debug=False, name='<stream>'):
    try:
        return super().parse_stream(stream, debug=debug)
    except pgen2.parse.ParseError as e:
        (_, (line, col)) = e.context
        raise SyntaxError(filename=name, lineno=line, column=col)

dataset/ETHPy150Open tailhook/pyzza/pyzza/parser.py Parser.parse_stream/original