def RemoveFile(filename):
  """Remove a file ignoring some errors.

  Remove a file, ignoring non-existing ones or directories. Other
  errors are passed.

  @type filename: str
  @param filename: the file to be removed

  """
  try:
    os.unlink(filename)
  except OSError, err:
    if (errno.ENOENT, errno.EISDIR) not in err.errno:
      raise
dataset/ETHPy150Open ganeti/ganeti/lib/utils/io.py/RemoveFile/swapped operands of `not in`