diff options
author | András Veres-Szentkirályi <vsza@vsza.hu> | 2011-08-18 23:22:09 +0200 |
---|---|---|
committer | András Veres-Szentkirályi <vsza@vsza.hu> | 2011-08-18 23:30:02 +0200 |
commit | e9006ae1994d535af3e53182247e511877d4781f (patch) | |
tree | 011c4cc3aaf148274d80c51ec91b3ab736d10b0a /libmproxy/console.py | |
parent | 82245298f4e0d9b798f20448c44878ef5a8a9a90 (diff) | |
download | mitmproxy-e9006ae1994d535af3e53182247e511877d4781f.tar.gz mitmproxy-e9006ae1994d535af3e53182247e511877d4781f.tar.bz2 mitmproxy-e9006ae1994d535af3e53182247e511877d4781f.zip |
Optimized list appending
Diffstat (limited to 'libmproxy/console.py')
-rw-r--r-- | libmproxy/console.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py index 591b1c9a..c979b3ad 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -1386,7 +1386,7 @@ class ConsoleMaster(flow.FlowMaster): def helptext(self): text = [] - text.extend([("head", "Global keys:\n")]) + text.append(("head", "Global keys:\n")) keys = [ ("A", "accept all intercepted connections"), ("a", "accept this intercepted connection"), @@ -1443,7 +1443,7 @@ class ConsoleMaster(flow.FlowMaster): ] text.extend(format_keyvals(keys, key="key", val="text", indent=4)) - text.extend([("head", "\n\nConnection list keys:\n")]) + text.append(("head", "\n\nConnection list keys:\n")) keys = [ ("C", "clear connection list or eventlog"), ("d", "delete connection from view"), @@ -1455,7 +1455,7 @@ class ConsoleMaster(flow.FlowMaster): ] text.extend(format_keyvals(keys, key="key", val="text", indent=4)) - text.extend([("head", "\n\nConnection view keys:\n")]) + text.append(("head", "\n\nConnection view keys:\n")) keys = [ ("b", "save request/response body"), ("e", "edit request/response"), @@ -1467,7 +1467,7 @@ class ConsoleMaster(flow.FlowMaster): ] text.extend(format_keyvals(keys, key="key", val="text", indent=4)) - text.extend([("head", "\n\nFilter expressions:\n")]) + text.append(("head", "\n\nFilter expressions:\n")) f = [] for i in filt.filt_unary: f.append( |