Loop over updated keys in non recursive update

Remove dict.update and always use loop because this is failing for
 NamespacedDictWrapper.
This commit is contained in:
Martin Hoefling 2016-07-17 13:16:38 +02:00
parent 6ea0ce6a38
commit ddd0c707dd

View File

@ -58,7 +58,8 @@ def update(dest, upd, recursive_update=True, merge_lists=False):
return dest
else:
try:
dest.update(upd)
for k in upd.keys():
dest[k] = upd[k]
except AttributeError:
# this mapping is not a dict
for k in upd: