def visit_assert(self, node, parent):
        """visit a Assert node by returning a fresh instance of it"""
        newnode = nodes.Assert(node.lineno, node.col_offset, parent)
        if node.msg:
            msg = self.visit(node.msg, newnode)
        else:
            msg = None
        newnode.postinit(self.visit(node.test, newnode), msg)
        return newnode
def visit_assert ( self , node , parent ) : newnode = nodes . Assert ( node . lineno , node . col_offset , parent ) if node . msg : msg = self . visit ( node . msg , newnode ) else : msg = None newnode . postinit ( self . visit ( node . test , newnode ) , msg ) return newnode
visit a Assert node by returning a fresh instance of it