aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-05-07 18:46:17 +1200
committerAldo Cortesi <aldo@nullcube.com>2018-05-07 18:46:17 +1200
commit39e5f94cf1db7287805b896b9cdf2a2579262739 (patch)
treefb8a3014349863ef4bd436aeb4b69abb19280ec9
parent2a0da34a0c55918fdb50ead4c34c5ea1801a7779 (diff)
downloadmitmproxy-39e5f94cf1db7287805b896b9cdf2a2579262739.tar.gz
mitmproxy-39e5f94cf1db7287805b896b9cdf2a2579262739.tar.bz2
mitmproxy-39e5f94cf1db7287805b896b9cdf2a2579262739.zip
Zap some commands.call invocations that were missed in the rename
-rw-r--r--mitmproxy/tools/console/consoleaddons.py10
-rw-r--r--mitmproxy/tools/console/flowlist.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py
index 81f568ed..54fe11c4 100644
--- a/mitmproxy/tools/console/consoleaddons.py
+++ b/mitmproxy/tools/console/consoleaddons.py
@@ -147,7 +147,7 @@ class ConsoleAddon:
fv = self.master.window.current("options")
if not fv:
raise exceptions.CommandError("Not viewing options.")
- self.master.commands.call("options.reset.one %s" % fv.current_name())
+ self.master.commands.execute("options.reset.one %s" % fv.current_name())
@command.command("console.nav.start")
def nav_start(self) -> None:
@@ -237,7 +237,7 @@ class ConsoleAddon:
repl = cmd + " " + " ".join(args)
repl = repl.replace("{choice}", opt)
try:
- self.master.commands.call(repl)
+ self.master.commands.execute(repl)
except exceptions.CommandError as e:
signals.status_message.send(message=str(e))
@@ -265,7 +265,7 @@ class ConsoleAddon:
repl = shlex.quote(" ".join(args))
repl = repl.replace("{choice}", opt)
try:
- self.master.commands.call(subcmd + " " + repl)
+ self.master.commands.execute(subcmd + " " + repl)
except exceptions.CommandError as e:
signals.status_message.send(message=str(e))
@@ -287,7 +287,7 @@ class ConsoleAddon:
"""
option_value = getattr(self.master.options, option, None)
current_value = option_value if option_value else ""
- self.master.commands.call(
+ self.master.commands.execute(
"console.command set %s=%s" % (option, current_value)
)
@@ -429,7 +429,7 @@ class ConsoleAddon:
elif part == "set-cookies":
self.master.switch_view("edit_focus_setcookies")
elif part in ["url", "method", "status_code", "reason"]:
- self.master.commands.call(
+ self.master.commands.execute(
"console.command flow.set @focus %s " % part
)
diff --git a/mitmproxy/tools/console/flowlist.py b/mitmproxy/tools/console/flowlist.py
index edb7004f..e6bd1693 100644
--- a/mitmproxy/tools/console/flowlist.py
+++ b/mitmproxy/tools/console/flowlist.py
@@ -27,7 +27,7 @@ class FlowItem(urwid.WidgetWrap):
def mouse_event(self, size, event, button, col, row, focus):
if event == "mouse press" and button == 1:
if self.flow.request:
- self.master.commands.call("console.view.flow @focus")
+ self.master.commands.execute("console.view.flow @focus")
return True
def keypress(self, size, key):