Skip to content

Commit

Permalink
fix flake8-bugbear finding
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 4, 2022
1 parent 21da8f5 commit 5d3d241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jinja2/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def visit(self, node: Node, *args: t.Any, **kwargs: t.Any) -> t.Any:

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):
Expand Down

0 comments on commit 5d3d241

Please sign in to comment.