def _file_lines(fname):
 try:
  outfile = open(fname)
 except IOError:
  return []
 else:
  out = outfile.readlines()
  outfile.close()
  return out

def _file_lines ( fname ) : try : outfile = open ( fname ) except IOError : return [ ] else : out = outfile . readlines ( ) outfile . close ( ) return out
return the contents of a named file as a list of lines .