From e9006ae1994d535af3e53182247e511877d4781f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 18 Aug 2011 23:22:09 +0200 Subject: [PATCH] Optimized list appending --- libmproxy/console.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libmproxy/console.py b/libmproxy/console.py index 591b1c9a7..c979b3ad9 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(