dict_object.keys() is not required for *in* operator

cleanup of .keys() from dict_object.keys() *in* operator

Change-Id: I48244786f5dc4cfc8e518322edb6d31dbf2336f6
This commit is contained in:
Manik Bindlish 2018-12-20 10:56:19 +00:00
parent af948e1510
commit cbafae38c7
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def delta(previous, current, meta=False):
raise ValueError('Only mappings of numbers are understood')
seen.add(k)
# New keys
for k in set(current.keys()) - seen:
for k in set(current) - seen:
product[k] = current[k]
return product