def _read_file(folder, filename):
 path = os.path.join(folder, filename)
 try:
  with salt.utils.fopen(path, 'rb') as contents:
   return contents.readlines()
 except (OSError, IOError):
  return ''

def _read_file ( folder , filename ) : path = os . path . join ( folder , filename ) try : with salt . utils . fopen ( path , 'rb' ) as contents : return contents . readlines ( ) except ( OSError , IOError ) : return ''
reads and returns the contents of a file .