Further optimize dictupdate.update()

This commit is contained in:
Colton Myers 2015-05-29 17:59:27 -06:00
parent c73f5ba37c
commit ff6b2a781f

View File

@ -28,6 +28,8 @@ def update(dest, upd, recursive_update=True):
'''
if dest is None:
return upd
if not (set(dest.keys()) & set(upd.keys())):
recursive_update = False
if recursive_update:
for key, val in six.iteritems(upd):
try: