diff options
author | Tarashish Mishra <sunu0000@gmail.com> | 2015-03-04 22:32:01 +0530 |
---|---|---|
committer | Tarashish Mishra <sunu0000@gmail.com> | 2015-03-04 22:32:01 +0530 |
commit | 48023db59e048da20484ca631d41aa524425f5dd (patch) | |
tree | f2f4c81075554fc2b05ca3ea10c02b8b33154c75 /libmproxy/console | |
parent | b49d573c8ba2aac2f2ec9082c9982cc097a094b9 (diff) | |
download | mitmproxy-48023db59e048da20484ca631d41aa524425f5dd.tar.gz mitmproxy-48023db59e048da20484ca631d41aa524425f5dd.tar.bz2 mitmproxy-48023db59e048da20484ca631d41aa524425f5dd.zip |
Minor refactor to PR #496
Diffstat (limited to 'libmproxy/console')
-rw-r--r-- | libmproxy/console/flowdetailview.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py index 1299443d..4164c416 100644 --- a/libmproxy/console/flowdetailview.py +++ b/libmproxy/console/flowdetailview.py @@ -37,15 +37,15 @@ class FlowDetailsView(urwid.ListBox): cc = self.flow.client_conn sc = self.flow.server_conn - req = self.flow.request; - resp = self.flow.response; + req = self.flow.request + resp = self.flow.response if sc: text.append(urwid.Text([("head", "Server Connection:")])) parts = [ ["Address", "%s:%s" % sc.address()], ] - + text.extend(common.format_keyvals(parts, key="key", val="text", indent=4)) c = sc.cert @@ -89,7 +89,7 @@ class FlowDetailsView(urwid.ListBox): ["Address", "%s:%s" % cc.address()], # ["Requests", "%s"%cc.requestcount], ] - + text.extend(common.format_keyvals(parts, key="key", val="text", indent=4)) parts = [] @@ -105,7 +105,7 @@ class FlowDetailsView(urwid.ListBox): parts.append(["First response byte", utils.format_timestamp_with_milli(resp.timestamp_start) if resp else "active"]) parts.append(["Response complete", utils.format_timestamp_with_milli(resp.timestamp_end) if (resp and resp.timestamp_end) else "active"]) - # sort operations by timestamp + # sort operations by timestamp parts = sorted(parts, key=lambda p: p[1]) text.append(urwid.Text([("head", "Timing:")])) |