src/admin_toolbelt/utils.py
def first_existing(d, keys):
    """Returns the value of the first key in keys which exists in d."""
    for key in keys:
        if key in d:
            return d[key]
    return None
Returns the value of the first key in keys which exists in d.
Returns the value of the first key in keys which exists in d.
Returns the value of the first key in keys which exists in d .
def first_existing(d, keys):
    for key in keys:
        if key in d:
            return d[key]
    return None
def first_existing ( d , keys ) : for key in keys : if key in d : return d [ key ] return None
Returns the value of the first key in keys which exists in d.
Returns the value of the first key in keys which exists in d .
"""Returns the value of the first key in keys which exists in d."""
d
keys