def file_content(project_tree, path):
  try:
    return FileContent(path.path, project_tree.content(path.path))
  except (IOError, __HOLE__) as e:
    if e.errno == errno.ENOENT:
      return FileContent(path.path, None)
    else:
      raise e
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/fs.py/file_content