aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/connlist.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-02-18 11:11:59 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-02-18 11:11:59 +1300
commit08fdd23e234ffaa11352891b103377240bc11fbe (patch)
tree2a3756af7b984ec1fb7a2414a19dc0224fc50e89 /libmproxy/console/connlist.py
parentfcc874fa183971c1985578dca66e4b4e49e17f43 (diff)
downloadmitmproxy-08fdd23e234ffaa11352891b103377240bc11fbe.tar.gz
mitmproxy-08fdd23e234ffaa11352891b103377240bc11fbe.tar.bz2
mitmproxy-08fdd23e234ffaa11352891b103377240bc11fbe.zip
Refactor the way we display flows.
Use columns to make spacing nicer, and to ensure that long URLs don't bugger up formatting when they spill into the next line.
Diffstat (limited to 'libmproxy/console/connlist.py')
-rw-r--r--libmproxy/console/connlist.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmproxy/console/connlist.py b/libmproxy/console/connlist.py
index a06f3e65..4e8bfebd 100644
--- a/libmproxy/console/connlist.py
+++ b/libmproxy/console/connlist.py
@@ -79,7 +79,6 @@ class BodyPile(urwid.Pile):
return self.focus_item.keypress( tsize, key )
-
class ConnectionItem(common.WWrap):
def __init__(self, master, state, flow, focus):
self.master, self.state, self.flow = master, state, flow
@@ -88,7 +87,7 @@ class ConnectionItem(common.WWrap):
common.WWrap.__init__(self, w)
def get_text(self):
- return urwid.Text(common.format_flow(self.flow, self.focus))
+ return common.format_flow(self.flow, self.focus)
def selectable(self):
return True