summaryrefslogtreecommitdiff
path: root/mesonbuild/optinterpreter.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/optinterpreter.py
parent9ffc0d2f894c78d6d0acab9001d9e8a0db05d9b0 (diff)
downloadmeson-139e020ede8a954a276e69d5c1921884ef9725ce.tar.gz
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/optinterpreter.py')
-rw-r--r--mesonbuild/optinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py
index 4fe0843dc..99085e382 100644
--- a/mesonbuild/optinterpreter.py
+++ b/mesonbuild/optinterpreter.py
@@ -130,7 +130,7 @@ class OptionInterpreter:
if 'type' not in kwargs:
raise OptionException('Option call missing mandatory "type" keyword argument')
opt_type = kwargs['type']
- if not opt_type in option_types:
+ if opt_type not in option_types:
raise OptionException('Unknown type %s.' % opt_type)
if len(posargs) != 1:
raise OptionException('Option() must have one (and only one) positional argument')