#NEWLINE# def apply_missing_start_tags( self , name , parser ) : #NEWLINE# #INDENT# path = self . get_path ( name ) #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# path = self . get_default_path ( ) #NEWLINE# #UNINDENT# if ( path and path [ 0 ] [ 0 ] ) : #NEWLINE# #INDENT# path = path [ 1 : ] #NEWLINE# #UNINDENT# for ( open , child ) in path : #NEWLINE# #INDENT# if open : #NEWLINE# #INDENT# if ( child . name != name ) : #NEWLINE# #INDENT# parser . handle_starttag ( child . name , ( ) , use_dtd = False ) #NEWLINE# #UNINDENT# parser . current_dtd = child #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# parser . handle_endtag ( child . name ) #NEWLINE# parser . current_dtd = parser . current_dtd . parent