diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2022-09-07 12:12:41 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-10-03 00:14:43 -0400 |
| commit | 20d76b835372c0caf9cc3aac14b4984cac42f67a (patch) | |
| tree | 8eb661c20d791fc6b834a83aefb8f1672a3ecd78 /mesonbuild/ast/printer.py | |
| parent | 676e66f8530ac45441c160eb8fe1d84a0703ceb6 (diff) | |
| download | meson-20d76b835372c0caf9cc3aac14b4984cac42f67a.tar.gz | |
pylint: enable unnecessary-comprehension
Diffstat (limited to 'mesonbuild/ast/printer.py')
| -rw-r--r-- | mesonbuild/ast/printer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/ast/printer.py b/mesonbuild/ast/printer.py index b095f5313..1e33cf021 100644 --- a/mesonbuild/ast/printer.py +++ b/mesonbuild/ast/printer.py @@ -173,9 +173,8 @@ class AstPrinter(AstVisitor): def visit_ForeachClauseNode(self, node: mparser.ForeachClauseNode) -> None: node.lineno = self.curr_line or node.lineno - varnames = [x for x in node.varnames] self.append_padded('foreach', node) - self.append_padded(', '.join(varnames), node) + self.append_padded(', '.join(node.varnames), node) self.append_padded(':', node) node.items.accept(self) self.newline() |
