mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
use super instead
This commit is contained in:
parent
23bb565259
commit
3f0a1eb896
1 changed files with 3 additions and 3 deletions
|
@ -34,17 +34,17 @@ class PluginBase(component.Component):
|
||||||
|
|
||||||
class CorePluginBase(PluginBase):
|
class CorePluginBase(PluginBase):
|
||||||
def __init__(self, plugin_name):
|
def __init__(self, plugin_name):
|
||||||
component.Component.__init__(self, "CorePlugin." + plugin_name)
|
super(PluginBase, self).__init__("CorePlugin." + plugin_name)
|
||||||
# Register RPC methods
|
# Register RPC methods
|
||||||
component.get("RPCServer").register_object(self, plugin_name.lower())
|
component.get("RPCServer").register_object(self, plugin_name.lower())
|
||||||
log.debug("CorePlugin initialized..")
|
log.debug("CorePlugin initialized..")
|
||||||
|
|
||||||
class GtkPluginBase(PluginBase):
|
class GtkPluginBase(PluginBase):
|
||||||
def __init__(self, plugin_name):
|
def __init__(self, plugin_name):
|
||||||
component.Component.__init__(self, "GtkPlugin." + plugin_name)
|
super(GtkPluginBase, self).__init__("GtkPlugin." + plugin_name)
|
||||||
log.debug("GtkPlugin initialized..")
|
log.debug("GtkPlugin initialized..")
|
||||||
|
|
||||||
class WebPluginBase(PluginBase):
|
class WebPluginBase(PluginBase):
|
||||||
def __init__(self, plugin_name):
|
def __init__(self, plugin_name):
|
||||||
component.Component.__init__(self, "WebPlugin." + plugin_name)
|
super(WebPluginBase, self).__init__("WebPlugin." + plugin_name)
|
||||||
log.debug("WebPlugin initialized..")
|
log.debug("WebPlugin initialized..")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue