Пример #1
0
 def visit_keyword(self, node, parent):
     """visit a Keyword node by returning a fresh instance of it"""
     newnode = new.Keyword()
     self._set_infos(node, newnode, parent)
     newnode.value = self.visit(node.expr, newnode)
     newnode.arg = node.name
     return newnode
Пример #2
0
 def visit_keyword(self, node, parent):
     """visit a Keyword node by returning a fresh instance of it"""
     newnode = new.Keyword()
     _lineno_parent(node, newnode, parent)
     newnode.arg = node.arg
     newnode.value = self.visit(node.value, newnode)
     newnode.set_line_info(newnode.last_child())
     return newnode