def uninstall_conf(self):
    """uninstall_conf() -> True/False"""
    app_conf_dir = os.path.abspath(os.path.join(self.abs_path, 'conf'))
    if not os.path.isdir(app_conf_dir):
      return True

    # Check all symlink in the conf dir and remove any that point to this app
    for name in os.listdir(common.HUE_CONF_DIR):
      path = os.path.join(common.HUE_CONF_DIR, name)
      if not os.path.islink(path):
        continue
      target = os.readlink(path)
      target_dir = os.path.abspath(os.path.dirname(target))
      if target_dir == app_conf_dir:
        try:
          os.unlink(path)
          LOG.info('Remove config symlink %s -> %s' % (path, target))
        except OSError, ex:
          LOG.error((path, ex) % "Failed to remove configuration link %s: %s")
          return False
    return True
dataset/ETHPy150Open cloudera/hue/tools/app_reg/registry.py/HueApp.uninstall_conf/swapped operands of `%`