def _MakeCronListIntoYaml(cron_list):
 statements = ['cron:']
 for cron in cron_list:
  statements += cron.ToYaml()
 return ('\n'.join(statements) + '\n')

def _MakeCronListIntoYaml ( cron_list ) : statements = [ 'cron:' ] for cron in cron_list : statements += cron . ToYaml ( ) return ( '\n' . join ( statements ) + '\n' )
converts list of yaml statements describing cron jobs into a string .