|
@@ -26,6 +26,8 @@ def dict_merge(a, b):
|
|
|
for k, v in b.iteritems():
|
|
|
if k in result and isinstance(result[k], dict):
|
|
|
result[k] = dict_merge(result[k], v)
|
|
|
+ elif k in result and isinstance(result[k], list):
|
|
|
+ result[k] = result[k] + [ deepcopy(x) for x in v if x not in result[k] ]
|
|
|
else:
|
|
|
result[k] = deepcopy(v)
|
|
|
return result
|