def visit_if(self, node):
ifs = ["<STR_LIT>" % (node.test.accept(self), self._stmt_list(node.body))]<EOL>if node.has_elif_block():<EOL><INDENT>ifs.append("<STR_LIT>" % self._stmt_list(node.orelse, indent=False))<EOL><DEDENT>elif node.orelse:<EOL><INDENT>ifs.append("<STR_LIT>" % self._stmt_list(node.orelse))<EOL><DEDENT>return "<STR_LIT:\n>".join(ifs)<EOL>
return an astroid.If node as string