

def parse_line(line):
    for typ in [Table, Relation, Column]:
        match = typ.RE.match(line)
        if match:
            return typ.make_from_match(match)
    msg = 'Line "{}" could not be parsed to an object.'
    raise ValueError(line.format(line))

dataset/ETHPy150Open Alexis-benoist/eralchemy/eralchemy/parser.py parse_line/VarMisuse@56/81 `msg`->`line`