summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Addon.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 19:39:08 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 19:39:08 +0200
commit34abcd53a83582215d13056b1f23c61bc7dbf3a7 (patch)
tree8a62481a0d2af00e85ef7d72097e763ca6de8ed4 /module/plugins/internal/Addon.py
parentUpdate internals (diff)
downloadpyload-34abcd53a83582215d13056b1f23c61bc7dbf3a7.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/Addon.py')
-rw-r--r--module/plugins/internal/Addon.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/internal/Addon.py b/module/plugins/internal/Addon.py
index e5d9a2699..de0852597 100644
--- a/module/plugins/internal/Addon.py
+++ b/module/plugins/internal/Addon.py
@@ -13,7 +13,6 @@ class Expose(object):
def threaded(fn):
-
def run(*args, **kwargs):
hookManager.startThread(fn, *args, **kwargs)
@@ -59,6 +58,12 @@ 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():