#NEWLINE# def destroy( self ) : #NEWLINE# #INDENT# 'destroy() Remove this node and all child node references.' #NEWLINE# if self . _parent : #NEWLINE# #INDENT# i = self . _parent . index ( self ) #NEWLINE# del self . _parent [ i ] #NEWLINE# #UNINDENT# self . _parent = None #NEWLINE# for n in i . _children : #NEWLINE# #INDENT# n . _parent = None #NEWLINE# #UNINDENT# self . _children = None