From 279adeb1b40cac21774ef297042817999a13491f Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 31 Aug 2023 23:53:35 +0200 Subject: [PATCH] Tools: Comparison to `False` should be `cond is False` or `if not cond:` --- Tools/ardupilotwaf/build_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/build_summary.py b/Tools/ardupilotwaf/build_summary.py index 6a0abacc82..82f7636756 100644 --- a/Tools/ardupilotwaf/build_summary.py +++ b/Tools/ardupilotwaf/build_summary.py @@ -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