#NEWLINE# def endElement( self , name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# fn = self . _end_handlers [ name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# if ( self . _error_mode == self . ERR_MODE_IGNORE ) : #NEWLINE# #INDENT# fn = fn . _ignore #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise SAXException ( 'No end handler for tag {0!r}' . format ( name ) ) #NEWLINE# #UNINDENT# #UNINDENT# fn ( ) #NEWLINE# assert ( self . _tag_stack . pop ( ) == name )