def _parse_years(years):
result = []<EOL>for part in years.split('<STR_LIT:U+002C>'):<EOL><INDENT>if '<STR_LIT:->' in part:<EOL><INDENT>a, b = part.split('<STR_LIT:->')<EOL>a, b = int(a), int(b)<EOL>result.extend(range(a, b + <NUM_LIT:1>))<EOL><DEDENT>else:<EOL><INDENT>a = int(part)<EOL>result.append(a)<EOL><DEDENT><DEDENT>return result<EOL>
Parse string of ints include ranges into a `list` of `int`

    Source: https://stackoverflow.com/a/6405228/1307974