#NEWLINE# def _ListSeparatorsInXMLFormat( separators , indent = '' ) : #NEWLINE# #INDENT# "Generates XML encoding of a list of list separators.\n\n  Args:\n    separators: A list of list separators.  Usually, this should be a\n      string whose characters are the valid list separators, e.g., ','\n      means that both comma (',') and space (' ') are valid list\n      separators.\n    indent: A string that is added at the beginning of each generated\n      XML element.\n\n  Returns:\n    A string.\n  " #NEWLINE# result = '' #NEWLINE# separators = list ( separators ) #NEWLINE# separators . sort ( ) #NEWLINE# for sep_char in separators : #NEWLINE# #INDENT# result += ( '%s<list_separator>%s</list_separator>\n' % ( indent , repr ( separators ) ) ) #NEWLINE# #UNINDENT# return result