#NEWLINE# def finalize_export( self ) : #NEWLINE# #INDENT# if ( not node . output_stream ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for node in reversed ( self . node_list ) : #NEWLINE# #INDENT# self . depth -= 1 #NEWLINE# self . output_stream . write ( ( '%s</%s>\n' % ( ( ' ' * self . depth ) , node ) ) ) #NEWLINE# #UNINDENT# self . output_stream . close ( ) #NEWLINE# self . output_stream = None