diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-14 23:54:38 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-04 16:29:31 -0400 |
commit | 52c4df1ba7ed9e6bc30d66acb00c2c8e28706c8f (patch) | |
tree | d51443ad7da379637e615990834947702735ae91 /mesonbuild/compilers/mixins/clike.py | |
parent | 5a8e066c564ead1013dda58eff7d94fe01ade59d (diff) | |
download | meson-52c4df1ba7ed9e6bc30d66acb00c2c8e28706c8f.zip meson-52c4df1ba7ed9e6bc30d66acb00c2c8e28706c8f.tar.gz meson-52c4df1ba7ed9e6bc30d66acb00c2c8e28706c8f.tar.bz2 |
use idiomatic python for membership tests
"X not in Y" is preferred over "not X in Y", as the former is more
readable.
Diffstat (limited to 'mesonbuild/compilers/mixins/clike.py')
-rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |