From 6f7ea0cc28c9e777c57c74b4d7c2d13604e48ba6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 2 Sep 2022 11:52:41 -0700 Subject: pylint: enable use-sequence-for-iteration This found a couple of places where we *don't* want to use set(), and want to use list() instead. --- mesonbuild/interpreter/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/interpreter/interpreter.py') 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: -- cgit v1.1