Do not use __nonzero__()
Change-Id: I72f44bb891106c6fb6994e7b8481ab34c1e7d0dc
This commit is contained in:
@@ -51,7 +51,7 @@ def dict_has_changes(original, other):
|
||||
return True
|
||||
|
||||
diffs = (set(original.keys()) - set(other.keys()))
|
||||
if len(diffs).__nonzero__():
|
||||
if len(diffs) > 0:
|
||||
return True
|
||||
|
||||
for key in original:
|
||||
|
||||
Reference in New Issue
Block a user