def GetBackendsYaml(unused_application, backends_xml_str):
 backend_list = BackendsXmlParser().ProcessXml(backends_xml_str)
 statements = ['backends:']
 for backend in backend_list:
  statements += backend.ToYaml()
 return ('\n'.join(statements) + '\n')

def GetBackendsYaml ( unused_application , backends_xml_str ) : backend_list = BackendsXmlParser ( ) . ProcessXml ( backends_xml_str ) statements = [ 'backends:' ] for backend in backend_list : statements += backend . ToYaml ( ) return ( '\n' . join ( statements ) + '\n' )
translates a backends .