summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/MultiHook.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/MultiHook.py')
-rw-r--r--module/plugins/internal/MultiHook.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py
index 7afe95705..4a43e89c7 100644
--- a/module/plugins/internal/MultiHook.py
+++ b/module/plugins/internal/MultiHook.py
@@ -207,7 +207,7 @@ class MultiHook(Hook):
self.log_error(_("No %s loaded") % self.plugintype)
return
- #: inject plugin plugin
+ #: Inject plugin plugin
self.log_debug("Overwritten %ss: %s" % (self.plugintype, ", ".join(sorted(self.supported))))
for plugin in self.supported:
@@ -223,7 +223,7 @@ class MultiHook(Hook):
self.log_debug("New %ss: %s" % (self.plugintype, ", ".join(plugins)))
- #: create new regexp
+ #: Create new regexp
regexp = r'.*(?P<DOMAIN>%s).*' % "|".join(x.replace('.', '\.') for x in plugins)
if hasattr(self.pluginclass, "__pattern__") and isinstance(self.pluginclass.__pattern__, basestring) and "://" in self.pluginclass.__pattern__:
regexp = r'%s|%s' % (self.pluginclass.__pattern__, regexp)
@@ -252,7 +252,7 @@ class MultiHook(Hook):
for plugin in self.supported:
self.unload_plugin(plugin)
- #: reset pattern
+ #: Reset pattern
hdict = self.core.pluginManager.plugins[self.plugintype][self.pluginname]
hdict['pattern'] = getattr(self.pluginclass, "__pattern__", r'^unmatchable$')