From 48023db59e048da20484ca631d41aa524425f5dd Mon Sep 17 00:00:00 2001 From: Tarashish Mishra Date: Wed, 4 Mar 2015 22:32:01 +0530 Subject: Minor refactor to PR #496 --- libmproxy/console/flowdetailview.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libmproxy/console') 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:")])) -- cgit v1.2.3