예제 #1
0
 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)
예제 #2
0
 def visit_exec_stmt(self, node: ExecStmt) -> ExecStmt:
     return ExecStmt(self.expr(node.expr),
                     self.optional_expr(node.globals),
                     self.optional_expr(node.locals))
예제 #3
0
파일: fastparse2.py 프로젝트: smalias/mypy
 def visit_Exec(self, n: ast27.Exec) -> ExecStmt:
     return ExecStmt(self.visit(n.body),
                     self.visit(n.globals),
                     self.visit(n.locals))
예제 #4
0
 def visit_exec_stmt(self, node: ExecStmt) -> Node:
     return ExecStmt(self.node(node.expr),
                     self.optional_node(node.variables1),
                     self.optional_node(node.variables2))