lib.utils.dict_nonedefault

lib.utils.dict_nonedefault(d1, **d2)

Set d1 dictionary entries to those in d2 if do not exist or None. Returns updated d1. This is an in-place operation (input d1 is modified).