From 3f0a1eb896e9489cc2325dd3f6571895371cff38 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sun, 22 Mar 2009 23:36:45 +0000 Subject: [PATCH] use super instead --- deluge/plugins/pluginbase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/plugins/pluginbase.py b/deluge/plugins/pluginbase.py index 445b515de..9a3e01567 100644 --- a/deluge/plugins/pluginbase.py +++ b/deluge/plugins/pluginbase.py @@ -34,17 +34,17 @@ class PluginBase(component.Component): class CorePluginBase(PluginBase): def __init__(self, plugin_name): - component.Component.__init__(self, "CorePlugin." + plugin_name) + super(PluginBase, self).__init__("CorePlugin." + plugin_name) # Register RPC methods component.get("RPCServer").register_object(self, plugin_name.lower()) log.debug("CorePlugin initialized..") class GtkPluginBase(PluginBase): def __init__(self, plugin_name): - component.Component.__init__(self, "GtkPlugin." + plugin_name) + super(GtkPluginBase, self).__init__("GtkPlugin." + plugin_name) log.debug("GtkPlugin initialized..") class WebPluginBase(PluginBase): def __init__(self, plugin_name): - component.Component.__init__(self, "WebPlugin." + plugin_name) + super(WebPluginBase, self).__init__("WebPlugin." + plugin_name) log.debug("WebPlugin initialized..")