def execute_range_query():
    range_query = "%cf3.promises.all-mps-cores"
    range_servers = []
    cm_conf = open("/etc/cm.conf", 'r')
    for line in cm_conf.readlines():
        if line in "MPS":
            range_servers.append(line.split(':')[1].rstrip())

    while range_servers:
        try:
            range_server = range_servers.pop()
            range_connection = seco.range.Range(range_server)
            total_redis_corelist = range_connection.expand(range_query)
            if total_redis_corelist:
                break
        except:
            pass
    return(total_redis_corelist)
##########################################################################
dataset/ETHPy150Open linkedin/sysops-api/scripts/extract_sysops_api_to_disk.py/execute_range_query/swapped operands of `in`