diff options
author | 2015-10-10 17:49:14 +0200 | |
---|---|---|
committer | 2015-10-10 17:49:14 +0200 | |
commit | 8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch) | |
tree | bd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/internal/Addon.py | |
parent | Merge branch 'pr/n1997_GammaC0de' into stable (diff) | |
download | pyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz |
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/internal/Addon.py')
-rw-r--r-- | module/plugins/internal/Addon.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/module/plugins/internal/Addon.py b/module/plugins/internal/Addon.py index bdde514c0..12a4aed95 100644 --- a/module/plugins/internal/Addon.py +++ b/module/plugins/internal/Addon.py @@ -21,9 +21,10 @@ def threaded(fn): class Addon(Plugin): - __name__ = "Addon" + __name = "Addon" + __type = "addon" __type__ = "hook" #@TODO: Change to `addon` in 0.4.10 - __version__ = "0.12" + __version__ = "0.13" __status__ = "testing" __threaded__ = [] #@TODO: Remove in 0.4.10 @@ -59,12 +60,6 @@ class Addon(Plugin): self.init_events() - #@TODO: Remove in 0.4.10 - def _log(self, level, plugintype, pluginname, messages): - plugintype = "addon" if plugintype is "hook" else plugintype - return super(Addon, self)._log(level, plugintype, pluginname, messages) - - def init_events(self): if self.event_map: for event, funcs in self.event_map.items(): |