def __removePluginFromConfig(self,category_name, plugin_name):
        """
        Utility function to add a plugin to the list of plugin to be
        activated.
        """
        # check that the section is here
        if not self.config_parser.has_section(self.CONFIG_SECTION_NAME):
            # then nothing to remove :)
            return 
        # check that the category's list of activated plugins is here too
        option_name = self.__getCategoryOptionsName(category_name)
        if not self.config_parser.has_option(self.CONFIG_SECTION_NAME, option_name):
            # if there is no list still nothing to do
            return
        else:
            # get the already existing list
            past_list_str = self.config_parser.get(self.CONFIG_SECTION_NAME,option_name)
            past_list = self.__getCategoryPluginsListFromConfig(past_list_str)
            if past_list in plugin_name:
                past_list.remove(plugin_name)
                new_list_str = self.__getCategoryPluginsConfigFromList(past_list)
                self.config_parser.set(self.CONFIG_SECTION_NAME,option_name,new_list_str)
                self.config_has_changed()
dataset/ETHPy150Open datamachine/telex/telex/plugin/ConfigurablePluginManager.py/ConfigurablePluginManager.__removePluginFromConfig/swapped operands of `in`