From 139e020ede8a954a276e69d5c1921884ef9725ce Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 19 Dec 2016 21:48:35 +0100 Subject: tree-wide: use proper 'not in' notation Let's be more pythonic and 'not is' seems really weird. Signed-off-by: Igor Gnatenko --- mesonbuild/backend/ninjabackend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mesonbuild/backend') 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 -- cgit v1.1