aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/console/help.py')
-rw-r--r--libmproxy/console/help.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/libmproxy/console/help.py b/libmproxy/console/help.py
index 27288a36..fddab537 100644
--- a/libmproxy/console/help.py
+++ b/libmproxy/console/help.py
@@ -1,5 +1,7 @@
from __future__ import absolute_import
+
import urwid
+
from . import common
from .. import filt, version
@@ -8,6 +10,7 @@ footer = [
('heading_key', "q"), ":back ",
]
+
class HelpView(urwid.ListBox):
def __init__(self, master, help_context, state):
self.master, self.state = master, state
@@ -122,7 +125,9 @@ class HelpView(urwid.ListBox):
("T", "set tcp proxying pattern"),
("u", "set sticky auth expression"),
]
- text.extend(common.format_keyvals(keys, key="key", val="text", indent=4))
+ text.extend(
+ common.format_keyvals(keys, key="key", val="text", indent=4)
+ )
text.append(urwid.Text([("head", "\n\nFilter expressions:\n")]))
f = []
@@ -167,7 +172,9 @@ class HelpView(urwid.ListBox):
("~q ~b test", "Requests where body contains \"test\""),
("!(~q & ~t \"text/html\")", "Anything but requests with a text/html content type."),
]
- text.extend(common.format_keyvals(examples, key="key", val="text", indent=4))
+ text.extend(
+ common.format_keyvals(examples, key="key", val="text", indent=4)
+ )
return text
def keypress(self, size, key):