summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExternalScripts.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/hooks/ExternalScripts.py
parentUpdate internals (diff)
downloadpyload-34abcd53a83582215d13056b1f23c61bc7dbf3a7.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r--module/plugins/hooks/ExternalScripts.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 4309bd3c9..d414d170c 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -84,7 +84,7 @@ class ExternalScripts(Addon):
def call(self, script, args=[], lock=None):
if lock is None:
lock = self.get_config('lock')
-
+
try:
script = os.path.abspath(script)
args = [script] + map(lambda arg: encode(arg) if isinstance(arg, basestring) else encode(str(arg)), args)
@@ -98,12 +98,12 @@ class ExternalScripts(Addon):
self.log_error(_("Runtime error: %s") % script,
e or _("Unknown error"))
-
+
def _call(self, folder, args=[], lock=None):
for script in self.scripts[folder]:
self.call(script, args, lock)
-
-
+
+
def pyload_start(self):
self._call('pyload_start')