def _MakeDispatchListIntoYaml(application, dispatch_list):
 statements = [('application: %s' % application), 'dispatch:']
 for entry in dispatch_list:
  statements += entry.ToYaml()
 return ('\n'.join(statements) + '\n')

def _MakeDispatchListIntoYaml ( application , dispatch_list ) : statements = [ ( 'application: %s' % application ) , 'dispatch:' ] for entry in dispatch_list : statements += entry . ToYaml ( ) return ( '\n' . join ( statements ) + '\n' )
converts list of dispatchentry objects into a yaml string .