def visit_Exec(self, n: ast27.Exec) -> ExecStmt: stmt = ExecStmt(self.visit(n.body), self.visit(n.globals), self.visit(n.locals)) return self.set_line(stmt, n)
def visit_exec_stmt(self, node: ExecStmt) -> ExecStmt: return ExecStmt(self.expr(node.expr), self.optional_expr(node.globals), self.optional_expr(node.locals))
def visit_Exec(self, n: ast27.Exec) -> ExecStmt: return ExecStmt(self.visit(n.body), self.visit(n.globals), self.visit(n.locals))
def visit_exec_stmt(self, node: ExecStmt) -> Node: return ExecStmt(self.node(node.expr), self.optional_node(node.variables1), self.optional_node(node.variables2))