#NEWLINE# def make_string( xml ) : #NEWLINE# #INDENT# if isinstance ( xml , six . string_types ) : #NEWLINE# #INDENT# xml = make_xml ( xml ) #NEWLINE# #UNINDENT# s = ET . tostring ( xml ) #NEWLINE# if ( s == '<xml />' ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# assert ( s . startswith ( '<xml>' ) and s . endswith ( '</xml>' ) ) , repr ( s ) #NEWLINE# return s [ 5 : ( - 6 ) ]