def not_none(*keys):
    """ Helper function returning first value which is not None. """
    for key in keys:
        if key is not None:
            return key
dataset/ETHPy150Open caxap/redis-moment/moment/utils.py/not_none/original