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
1 changed files with 1 additions and 1 deletions

View File

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