def parse_internal_ballot(line):
    ints = parse_integer_line(line)
    weight = next(ints)
    choices = tuple(ints)
    return weight, choices
Parse an internal ballot line (with or without a trailing newline).
dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/formats/internal.py/parse_internal_ballot