def safe_delete(filename):
  try:
    os.unlink(filename)
  except OSError as e:
    if e.errno != errno.ENOENT:
      raise
Delete a file safely. If it's not present, no-op.
dataset/ETHPy150Open pantsbuild/pex/pex/common.py/safe_delete