Tools: Comparison to False should be cond is False or if not cond:

This commit is contained in:
Pierre Kancir 2023-08-31 23:53:35 +02:00 committed by Peter Barker
parent 9f4dbb2727
commit 279adeb1b4

View File

@ -190,7 +190,7 @@ def _parse_size_output(s, s_all, totals=False):
lines = s.splitlines()[1:]
l = []
for line in lines:
if pattern.match(line) or totals==False:
if pattern.match(line) or totals is False:
row = line.strip().split()
# check if crash_log wasn't found