scripts: Remove unnecessary () around if/while conditions in Python
Not needed in Python. Detected by check C0325 in pylint3.
Also replace an
if len(tag):
with just
if tag:
Empty strings, byte strings, lists, etc., are falsy in Python.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
diff --git a/scripts/process_gperf.py b/scripts/process_gperf.py
index de9298d..4dc615f 100755
--- a/scripts/process_gperf.py
+++ b/scripts/process_gperf.py
@@ -54,7 +54,7 @@
ctr = 3
i = 0
- while (True):
+ while True:
if i >= len(addr_str):
break