aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mconf.py
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/mconf.py
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/mconf.py')
-rw-r--r--mesonbuild/mconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index 2db4d37..027dd58 100644
--- a/mesonbuild/mconf.py
+++ b/mesonbuild/mconf.py
@@ -104,7 +104,7 @@ class Conf:
tgt.set_value(v)
elif k.endswith('_link_args'):
lang = k[:-10]
- if not lang in self.coredata.external_link_args:
+ if lang not in self.coredata.external_link_args:
raise ConfException('Unknown language %s in linkargs.' % lang)
# TODO, currently split on spaces, make it so that user
# can pass in an array string.
@@ -112,7 +112,7 @@ class Conf:
self.coredata.external_link_args[lang] = newvalue
elif k.endswith('_args'):
lang = k[:-5]
- if not lang in self.coredata.external_args:
+ if lang not in self.coredata.external_args:
raise ConfException('Unknown language %s in compile args' % lang)
# TODO same fix as above
newvalue = v.split()