diff options
author | David Lord <davidism@gmail.com> | 2022-04-04 06:56:11 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2022-04-04 06:56:11 -0700 |
commit | 5d3d2414710c1439105d84efc58e4aba8e453cb3 (patch) | |
tree | 664012f9de1f3ba31b961865251ec806c695d5bc /src | |
parent | 21da8f529888a2144bafd183439d26564c6dc134 (diff) | |
download | jinja2-5d3d2414710c1439105d84efc58e4aba8e453cb3.tar.gz |
fix flake8-bugbear finding
Diffstat (limited to 'src')
-rw-r--r-- | src/jinja2/visitor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jinja2/visitor.py b/src/jinja2/visitor.py index 71e341e..17c6aab 100644 --- a/src/jinja2/visitor.py +++ b/src/jinja2/visitor.py @@ -43,8 +43,8 @@ class NodeVisitor: def generic_visit(self, node: Node, *args: t.Any, **kwargs: t.Any) -> t.Any: """Called if no explicit visitor function exists for a node.""" - for node in node.iter_child_nodes(): - self.visit(node, *args, **kwargs) + for child_node in node.iter_child_nodes(): + self.visit(child_node, *args, **kwargs) class NodeTransformer(NodeVisitor): |