Skip to content
Myr

fix flake8-bugbear finding

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 21da8f5 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/jinja2/visitor.py+2 added-2 removed
41 unmodified lines
42 return self.generic_visit(node, *args, **kwargs)4344 def generic_visit(self, node: Node, *args: t.Any, **kwargs: t.Any) -> t.Any:45 """Called if no explicit visitor function exists for a node."""46 for node in node.iter_child_nodes():47 self.visit(node, *args, **kwargs)46 for child_node in node.iter_child_nodes():47 self.visit(child_node, *args, **kwargs)484950class NodeTransformer(NodeVisitor):51 """Walks the abstract syntax tree and allows modifications of nodes.
41 unmodified lines