summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r--module/plugins/internal/Plugin.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index d0f75a8a3..7dec6344e 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -123,6 +123,14 @@ class Plugin(object):
def __init__(self, core):
self.core = core
self.info = {} #: Provide information in dict here
+ self.init()
+
+
+ def init(self):
+ """
+ Initialize the plugin (in addition to `__init__`)
+ """
+ pass
def _log(self, level, args):
@@ -309,7 +317,7 @@ class Plugin(object):
if just_header:
#: Parse header
- header = {"code": req.code}
+ header = {'code': req.code}
for line in res.splitlines():
line = line.strip()
if not line or ":" not in line: