def get_first_delim(text,delims):
    # Initialize found locations of delimiters:
    locs = []
    for (ds,de) in delims.items():
        loc = text.find(ds)
        # Check if the delimiter ds was found:
        if loc < 0:
            continue

        locs.append((loc,ds))
    
    if len(locs) == 0:
        return None

    # Return the first found delimiter, together with his location.
    return min(locs,key=lambda x:x[0])
Checks for/gets server.app version, since we're forking between 4 and 5
dataset/ETHPy150Open realcr/freedomlayer_website/lib/filters.py/get_first_delim--crossover with--dataset/ETHPy150Open macadmins/sashay/sashay.py/server_appvers