def generic_visit(self, node): if hasattr(node, 'lineno'): self._filldown(node.lineno + 1) for _ in map(self.visit, iter_child_nodes(node)): pass