def parse_range(string):
    try:
        splitted = string.split('..');
        if (len(splitted) != 2):
            raise ArgumentTypeError("'" + string + "' is not a valid range. Expected forms like '1..5'")

        start = int(splitted[0])
        end = int(splitted[1])

        return splitted
    except __HOLE__:
        raise ArgumentTypeError("Range values are not valid integers. Expected forms like '1..5'")

# Main method
dataset/ETHPy150Open jawerty/AlienFeed/alienfeed/alien.py/parse_range