MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / format_keys

Method format_keys

mitmproxy/tools/console/help.py:41–48  ·  view source on GitHub ↗
(self, binds)

Source from the content-addressed store, hash-verified

39 return "Key Bindings"
40
41 def format_keys(self, binds):
42 kvs = []
43 for b in binds:
44 k = b.key
45 if b.key == " ":
46 k = "space"
47 kvs.append((k, b.help or b.command))
48 return common.format_keyvals(kvs)
49
50 def keybindings(self):
51 text = [urwid.Text([("title", "Common Keybindings")])]

Callers 1

keybindingsMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected