diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2018-05-02 12:08:15 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2018-05-02 12:08:15 +1200 |
commit | 2f3ba1f66dca70764f7d081aa6836d34bbe963c8 (patch) | |
tree | 869f94bf3f909935441baebaec800914cb3aae5f | |
parent | 38ff8109fb814d96c271e27caa65b0c98a169ee2 (diff) | |
download | mitmproxy-2f3ba1f66dca70764f7d081aa6836d34bbe963c8.tar.gz mitmproxy-2f3ba1f66dca70764f7d081aa6836d34bbe963c8.tar.bz2 mitmproxy-2f3ba1f66dca70764f7d081aa6836d34bbe963c8.zip |
Catch some stray command.call invocations
-rw-r--r-- | mitmproxy/tools/console/flowlist.py | 6 | ||||
-rw-r--r-- | mitmproxy/tools/console/flowview.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/tools/console/flowlist.py b/mitmproxy/tools/console/flowlist.py index 78892fe1..edb7004f 100644 --- a/mitmproxy/tools/console/flowlist.py +++ b/mitmproxy/tools/console/flowlist.py @@ -79,11 +79,11 @@ class FlowListBox(urwid.ListBox, layoutwidget.LayoutWidget): def keypress(self, size, key): if key == "m_start": - self.master.commands.call("view.go 0") + self.master.commands.execute("view.go 0") elif key == "m_end": - self.master.commands.call("view.go -1") + self.master.commands.execute("view.go -1") elif key == "m_select": - self.master.commands.call("console.view.flow @focus") + self.master.commands.execute("console.view.flow @focus") return urwid.ListBox.keypress(self, size, key) def view_changed(self): diff --git a/mitmproxy/tools/console/flowview.py b/mitmproxy/tools/console/flowview.py index 837d71a8..b8ba7f12 100644 --- a/mitmproxy/tools/console/flowview.py +++ b/mitmproxy/tools/console/flowview.py @@ -98,7 +98,7 @@ class FlowDetails(tabs.Tabs): msg, body = "", [urwid.Text([("error", "[content missing]")])] return msg, body else: - full = self.master.commands.call("view.getval @focus fullcontents false") + full = self.master.commands.execute("view.getval @focus fullcontents false") if full == "true": limit = sys.maxsize else: |