def apply_include_only(mongo_dir_name, include_only):
    """

    :param mongo_dir_name:
    :param include_only: list of exes names to include only
    :return:
    """
    log_info("Keep include-only files (%s) from new mongo installation..." %
             include_only)
    bin_dir = os.path.join(mongo_dir_name, "bin")
    exes = list_dir_files(bin_dir)
    for exe_name in exes:
        # we always keep mongod because it used to determine mongo
        # installation version
        if exe_name == "mongod":
            continue
        exe_path = os.path.join(bin_dir, exe_name)
        if is_exe(exe_path):
            if exe_name not in include_only:
                log_info(exe_name % "Removing %s")
                os.remove(exe_path)
dataset/ETHPy150Open mongolab/mongoctl/mongoctl/commands/misc/install.py/apply_include_only/swapped operands of `%`