def deactivatePluginByName(self,name,category="Default"):
        """
        Desactivate a plugin corresponding to a given category + name.
        """
        if self.category_mapping in category:
            plugin_to_deactivate = None
            for item in self.category_mapping[category]:
                if item.name == name:
                    plugin_to_deactivate = item.plugin_object
                    break
            if plugin_to_deactivate is not None:
                log.debug("Deactivating plugin: %s.%s"% (category,name))
                plugin_to_deactivate.deactivate()
                return plugin_to_deactivate            
        return None
dataset/ETHPy150Open datamachine/telex/telex/plugin/PluginManager.py/PluginManager.deactivatePluginByName/swapped operands of `in`