#NEWLINE# @ contextmanager #NEWLINE# def _if_suite( self , headline , merge_endif ) : #NEWLINE# #INDENT# if ( merge_endif and self . _curr and self . _curr [ ( - 1 ) ] . startswith ( '#endif' ) ) : #NEWLINE# #INDENT# self . _curr . pop ( ( - 1 ) ) #NEWLINE# #UNINDENT# self . _append ( headline ) #NEWLINE# prev = self . _curr #NEWLINE# self . _curr = [ ] #NEWLINE# prev . append ( self . _curr ) #NEWLINE# ( yield ) #NEWLINE# self . _curr = prev #NEWLINE# self . stmt ( '#endif' )