def mapping_match(uri, mapping):
    """Determine whether the given URI matches one of the given mappings.

    Returns True if a match was found, False otherwise.

    """
    try:
        val = mapping_get(uri, mapping)
        return True
    except KeyError:
        return False
def mapping_match ( uri , mapping ) : try : val = mapping_get ( uri , mapping ) return True except KeyError : return False
Determine whether the given URI matches one of the given mappings.

    Returns True if a match was found, False otherwise.