Commits

Anonymous committed 24d31bb Draft

pylint

Comments (0)

Files changed (1)

araldo/plugins.py

             self._log.debug("Loading araldo plugins...")
             self._plugins = defaultdict(lambda: {})
 
-            self._load_plugins_for_group("araldo.endpoints.inbound", "InBound")
-            self._load_plugins_for_group("araldo.endpoints.outbound", "OutBound")
+            self._load_plugins_for_group(
+                "araldo.endpoints.inbound", 
+                "InBound")
+            self._load_plugins_for_group(
+                "araldo.endpoints.outbound", 
+                "OutBound")
         else:
             self._log.debug("Plugins were previously loaded")
         dump_obj(self._plugins, self._log, "Plugin registry")
         self._log.debug("Instantiating plugins")
         self.load_plugins()
         self._plugin_instances = defaultdict(lambda: {})
-        for plugin_group_key, plugin_group in self._config.settings()["plugins"].items():
+        plugin_items = self._config.settings()["plugins"].items()
+        for plugin_group_key, plugin_group in plugin_items:
             self._log.debug("Plugin group '%s'" % plugin_group_key)
             for plugin_config in plugin_group:
                 self._log.debug("plugin_config: %s" % plugin_config)
-                plugin_instance = self._instantiate_plugin(plugin_group_key, plugin_config)
+                plugin_instance = self._instantiate_plugin(
+                    plugin_group_key, 
+                    plugin_config)
                 plugin_name = plugin_config["name"]
-                self.add_plugin_instance(plugin_group_key, plugin_name, plugin_instance)
+                self.add_plugin_instance(
+                    plugin_group_key, 
+                    plugin_name, 
+                    plugin_instance)
         self._log.debug(
             "Plugin instances: %s",  
             self._plugin_instances)