From 52c4df1ba7ed9e6bc30d66acb00c2c8e28706c8f Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 14 Sep 2021 23:54:38 -0400 Subject: use idiomatic python for membership tests "X not in Y" is preferred over "not X in Y", as the former is more readable. --- mesonbuild/compilers/mixins/clike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 49b9567..dfd26d4 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -456,7 +456,7 @@ class CLikeCompiler(Compiler): # on MSVC compiler and linker flags must be separated by the "/link" argument # at this point, the '/link' argument may already be part of extra_args, otherwise, it is added here - if self.linker_to_compiler_args([]) == ['/link'] and largs != [] and not '/link' in extra_args: + if self.linker_to_compiler_args([]) == ['/link'] and largs != [] and '/link' not in extra_args: extra_args += ['/link'] args = cargs + extra_args + largs -- cgit v1.1