From d6b81307f66d4d20f7d2c9baac74a8449cad640a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 1 Feb 2023 15:57:35 -0500 Subject: pylint 2.16: remove pointless parens around equality assignments Given the construct `foo = (bar == baz)` some people like parentheses and some do not. They're pointless and don't mean anything, though. I don't feel this is particularly helpful to code clarity, tbh, and pylint now notices this and warns about it in our current pylint config. I think this is reasonable, so let's remove the odd parens. --- mesonbuild/mtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/mtest.py') diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 1feb205..fca9ae0 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -411,7 +411,7 @@ class TAPParser: yield self.Error('more than one plan found') else: num_tests = int(m.group(1)) - skipped = (num_tests == 0) + skipped = num_tests == 0 if m.group(2): if m.group(2).upper().startswith('SKIP'): if num_tests > 0: -- cgit v1.1