Do not use __nonzero__()

Change-Id: I72f44bb891106c6fb6994e7b8481ab34c1e7d0dc
This commit is contained in:
Lingxian Kong
2020-08-19 11:08:49 +12:00
parent 5259c8b025
commit 274807e4ed

View File

@@ -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: