diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-10 21:23:46 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-10 21:23:46 +0200 |
commit | 60ae0ee3dce4715621b9964c91ad96e08e123204 (patch) | |
tree | 251aeb85742a32a8f3711879e4071a66e59bdc26 /module/HookManager.py | |
parent | fixes netload free (diff) | |
download | pyload-60ae0ee3dce4715621b9964c91ad96e08e123204.tar.xz |
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index c3da485a9..1138a4c29 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -62,18 +62,16 @@ class HookManager: def addRPC(self, plugin, func, doc): plugin = plugin.rpartition(".")[2] - doc = doc.strip() + doc = doc.strip() if doc else "" if self.methods.has_key(plugin): self.methods[plugin][func] = doc else: self.methods[plugin] = {func: doc} - print self.methods - def callRPC(self, plugin, func, args, parse): if not args: args = tuple() - if parse is not False: + if parse: args = tuple([literal_eval(x) for x in args]) plugin = self.pluginMap[plugin] |