aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-21 00:09:44 +0200
committerGitHub <noreply@github.com>2016-12-21 00:09:44 +0200
commita2528a881640913dfc71fab7f15225d7e7d9a567 (patch)
treed4c90f6ae3a87624a4a7d7e90e48e2e700ee1d3f /mesonbuild/backend/ninjabackend.py
parent39ab311019aed50c6baf3dcb2e1c1bfe0bbe15e8 (diff)
parent139e020ede8a954a276e69d5c1921884ef9725ce (diff)
downloadmeson-a2528a881640913dfc71fab7f15225d7e7d9a567.zip
meson-a2528a881640913dfc71fab7f15225d7e7d9a567.tar.gz
meson-a2528a881640913dfc71fab7f15225d7e7d9a567.tar.bz2
Merge pull request #1233 from mesonbuild/wip/ignatenko/code-style
Trivial cleanups in code
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 4c10e8d..40776a9 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):
@@ -1283,7 +1283,6 @@ int dummy;
outfile.write(command)
outfile.write(description)
outfile.write('\n')
- scriptdir = self.environment.get_script_dir()
outfile.write('\n')
symrule = 'rule SHSYM\n'
symcmd = ' command = "%s" "%s" %s %s %s %s $CROSS\n' % (ninja_quote(sys.executable),
@@ -2077,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