merge_dicts
- romanisim.util.merge_dicts(a, b)
Merge two dictionaries, replacing values in a with values in b.
When both a & b have overlapping dictionaries, this recursively merges their contents. If a key does not correspond to a dictionary in both a & b, then the content of a is overwritten with the content of b.
- Parameters:
- adict
Dictionary to update
- bdict
Dictionary to use to update a.
- Returns:
- adict
a, mutated to contain keys from b.