src/platform/python/cinema/util.py (view raw)
1def dictMerge(a, b): 2 for key, value in b.items(): 3 if isinstance(value, dict): 4 if key in a: 5 dictMerge(a[key], value) 6 else: 7 a[key] = dict(value) 8 else: 9 a[key] = value