Skip to content
Snippets Groups Projects
Commit f9e56c31 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

more tests

parent ce894a15
No related branches found
No related tags found
No related merge requests found
...@@ -23,11 +23,4 @@ def _merge(v1, v2): ...@@ -23,11 +23,4 @@ def _merge(v1, v2):
@typed(dict, dict, returns=dict) @typed(dict, dict, returns=dict)
def merge_dicts(first, second): def merge_dicts(first, second):
return _merge(first, second)
for key in second.keys():
try:
first[key] = _merge(first[key], second[key])
except KeyError: # no key in first
first[key] = second[key]
return first
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment