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.xml string into a backends.yaml string.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/backends_xml_parser.py/GetBackendsYaml