#NEWLINE# def to_string( self ) : #NEWLINE# #INDENT# categorical = self . categorical #NEWLINE# if ( len ( categorical ) == 0 ) : #NEWLINE# #INDENT# if self . footer : #NEWLINE# #INDENT# return self . _get_footer ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return u ( '' ) #NEWLINE# #UNINDENT# #UNINDENT# fmt_values = self . _get_formatted_values ( ) #NEWLINE# result = [ ( '%s' % i ) for i in fmt_values ] #NEWLINE# result = [ i . strip ( ) for i in result ] #NEWLINE# result = u ( ', ' ) . join ( result ) #NEWLINE# result = [ ( ( u ( '[' ) + result ) + u ( ']' ) ) ] #NEWLINE# if self . footer : #NEWLINE# #INDENT# footer = self . _get_footer ( ) #NEWLINE# if result : #NEWLINE# #INDENT# result . append ( footer ) #NEWLINE# #UNINDENT# #UNINDENT# return compat . text_type ( u ( '\n' ) . join ( result ) )