From 42d4a2fae96b8b4ba35d3a88e20f278d79a0ccc6 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 12 Jan 2014 23:01:59 +1300 Subject: Script refactoring: move script command parsing into script module. --- libmproxy/flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmproxy/flow.py') diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 0aa03198..e0013f1e 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -1398,13 +1398,13 @@ class FlowMaster(controller.Master): script.unload() self.scripts.remove(script) - def load_script(self, script_argv): + def load_script(self, command): """ Loads a script. Returns an error description if something went wrong. """ try: - s = script.Script(script_argv, self) + s = script.Script(command, self) except script.ScriptError, v: return v.args[0] self.scripts.append(s) -- cgit v1.2.3