Error in finding differences
svn: r19996
This commit is contained in:
parent
d6fbdc43db
commit
e03eaa26da
@ -94,7 +94,9 @@ def diff_items(path, json1, json2):
|
|||||||
value1 = json1[key]
|
value1 = json1[key]
|
||||||
value2 = json2[key]
|
value2 = json2[key]
|
||||||
if isinstance(value1, dict) and isinstance(value2, dict):
|
if isinstance(value1, dict) and isinstance(value2, dict):
|
||||||
retval = diff_items(path + "/" + key, value1, value2)
|
result = diff_items(path + "/" + key, value1, value2)
|
||||||
|
if result:
|
||||||
|
retval = True
|
||||||
elif isinstance(value1, list) and isinstance(value2, list):
|
elif isinstance(value1, list) and isinstance(value2, list):
|
||||||
pos = 0
|
pos = 0
|
||||||
for v1, v2 in zip(value1, value2):
|
for v1, v2 in zip(value1, value2):
|
||||||
|
Loading…
Reference in New Issue
Block a user