def _ListSeparatorsInXMLFormat(separators, indent=''):
 result = ''
 separators = list(separators)
 separators.sort()
 for sep_char in separators:
  result += ('%s<list_separator>%s</list_separator>\n' % (indent, repr(sep_char)))
 return result

def _ListSeparatorsInXMLFormat ( separators , indent = '' ) : result = '' separators = list ( separators ) separators . sort ( ) for sep_char in separators : result += ( '%s<list_separator>%s</list_separator>\n' % ( indent , repr ( sep_char ) ) ) return result
generates xml encoding of a list of list separators .