diff options
-rw-r--r-- | .pylintrc | 1 | ||||
-rw-r--r-- | mesonbuild/build.py | 2 | ||||
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 2 |
3 files changed, 2 insertions, 3 deletions
@@ -88,7 +88,6 @@ disable= use-dict-literal, use-implicit-booleaness-not-comparison, use-list-literal, - use-sequence-for-iteration, used-before-assignment, useless-return, useless-super-delegation, diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 7a3bf88..dd5ea3c 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1002,7 +1002,7 @@ class BuildTarget(Target): return missing_languages def validate_sources(self): - if len(self.compilers) > 1 and any(lang in self.compilers for lang in {'cs', 'java'}): + if len(self.compilers) > 1 and any(lang in self.compilers for lang in ['cs', 'java']): langs = ', '.join(self.compilers.keys()) raise InvalidArguments(f'Cannot mix those languages into a target: {langs}') diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 3e6f343..1f9a99a 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -2475,7 +2475,7 @@ class Interpreter(InterpreterBase, HoldableObject): ) def func_configure_file(self, node: mparser.BaseNode, args: T.List[TYPE_var], kwargs: kwtypes.ConfigureFile): - actions = sorted(x for x in {'configuration', 'command', 'copy'} + actions = sorted(x for x in ['configuration', 'command', 'copy'] if kwargs[x] not in [None, False]) num_actions = len(actions) if num_actions == 0: |