aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-12-19 21:48:35 +0100
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-12-19 21:48:35 +0100
commit139e020ede8a954a276e69d5c1921884ef9725ce (patch)
tree2934fa9d848640eb057b1672e947217836aab47a /mesonbuild/backend
parent9ffc0d2f894c78d6d0acab9001d9e8a0db05d9b0 (diff)
downloadmeson-139e020ede8a954a276e69d5c1921884ef9725ce.zip
meson-139e020ede8a954a276e69d5c1921884ef9725ce.tar.gz
meson-139e020ede8a954a276e69d5c1921884ef9725ce.tar.bz2
tree-wide: use proper 'not in' notation
Let's be more pythonic and 'not is' seems really weird. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r--mesonbuild/backend/ninjabackend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 4a85327..d8fb732 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -268,7 +268,7 @@ int dummy;
return False
suffix = os.path.splitext(source)[1][1:]
for lang in self.langs_cant_unity:
- if not lang in target.compilers:
+ if lang not in target.compilers:
continue
if suffix in target.compilers[lang].file_suffixes:
return False
@@ -433,7 +433,7 @@ int dummy;
def process_target_dependencies(self, target, outfile):
for t in target.get_dependencies():
tname = t.get_basename() + t.type_suffix()
- if not tname in self.processed_targets:
+ if tname not in self.processed_targets:
self.generate_target(t, outfile)
def custom_target_generator_inputs(self, target, outfile):
@@ -2076,7 +2076,7 @@ rule FORTRAN_DEP_HACK
result = []
for ld in link_deps:
prospective = self.get_target_dir(ld)
- if not prospective in result:
+ if prospective not in result:
result.append(prospective)
return result