bananas/url.py
def resolve(cursor, key):
    """
    Get engine or raise exception, resolves Alias-instances to a sibling target.

    :param cursor: The object so search in
    :param key: The key to get
    :return: The object found
    """
    try:
        result = cursor[key]

        # Resolve alias
        if isinstance(result, Alias):
            result = cursor[result.target]

        return result
    except KeyError:
        raise KeyError("No matches for engine %s" % key)
def resolve(cursor, key):
    try:
        result = cursor[key]

        # Resolve alias
        if isinstance(result, Alias):
            result = cursor[result.target]

        return result
    except KeyError:
        raise KeyError("No matches for engine %s" % key)
def resolve ( cursor , key ) : try : result = cursor [ key ] # Resolve alias if isinstance ( result , Alias ) : result = cursor [ result . target ] return result except KeyError : raise KeyError ( "No matches for engine %s" % key )
Get engine or raise exception, resolves Alias-instances to a sibling target.

    :param cursor: The object so search in
    :param key: The key to get
    :return: The object found
Get engine or raise exception resolves Alias - instances to a sibling target .