#NEWLINE# def _do_prepare_unregister_complete( self , e , value ) : #NEWLINE# #INDENT# delattr ( self , '_unregister_pending' ) #NEWLINE# self . fire ( unregistered ( self , self . parent ) ) #NEWLINE# if ( self . parent is not self ) : #NEWLINE# #INDENT# self . parent . unregisterChild ( self ) #NEWLINE# self . parent = self #NEWLINE# #UNINDENT# self . _updateRoot ( self ) #NEWLINE# return self