def autoload_handlers(self):
        services = ConfigProcessor().get("services")
        services = sorted(services.items(), key=lambda s: s[1]['priority'])
        for (name, sopt) in services:
            if not sopt.get("enabled", False):
                continue
            try:
                handlers = namedModule(
                    name % "smartanthill.%s.api").get_handlers()
            except (ImportError, AttributeError):
                continue

            for handler in handlers:
                if handler.KEY and handler.PERMISSION:
                    self.log.info("Auto-loaded '%s:%s' handler" % (
                        handler.PERMISSION.name, handler.KEY))
                    self.add_handler(handler)
dataset/ETHPy150Open smartanthill/smartanthill1_0/smartanthill/api/service.py/APIService.autoload_handlers/swapped operands of `%`