def ReadCronConfig(croninfo_path, parse_cron_config=croninfo.LoadSingleCron):
 try:
  croninfo_file = file(croninfo_path, 'r')
 except IOError as e:
  raise InvalidAppConfigError(('Cron configuration could not be read from "%s": %s' % (croninfo_path, e)))
 try:
  return parse_cron_config(croninfo_file)
 finally:
  croninfo_file.close()

def ReadCronConfig ( croninfo_path , parse_cron_config = croninfo . LoadSingleCron ) : try : croninfo_file = file ( croninfo_path , 'r' ) except IOError as e : raise InvalidAppConfigError ( ( 'Cron configuration could not be read from "%s": %s' % ( croninfo_path , e ) ) ) try : return parse_cron_config ( croninfo_file ) finally : croninfo_file . close ( )
reads cron .