def setPluginLocator(self, plugin_locator, dir_list=None, picls=None):
        """
        Sets the strategy used to locate the basic information.

        See ``IPluginLocator`` for the policy that plugin_locator must enforce.
        """
        if isinstance(plugin_locator, IPluginLocator):
            self._plugin_locator = plugin_locator
            if dir_list is not None:
                self._plugin_locator.updatePluginPlaces(dir_list)
            if picls is not None:
                self.setPluginInfoClass(picls)
        else:
            raise TypeError(plugin_locator % "Unexpected format for plugin_locator ('%s' is not an instance of IPluginLocator)")
dataset/ETHPy150Open datamachine/telex/telex/plugin/PluginManager.py/PluginManager.setPluginLocator/swapped operands of `%`