MCPcopy
hub / github.com/mitmproxy/mitmproxy / _check_contexts

Method _check_contexts

mitmproxy/tools/console/keymap.py:78–83  ·  view source on GitHub ↗
(self, contexts)

Source from the content-addressed store, hash-verified

76 self.bindings = []
77
78 def _check_contexts(self, contexts):
79 if not contexts:
80 raise ValueError("Must specify at least one context.")
81 for c in contexts:
82 if c not in Contexts:
83 raise ValueError("Unsupported context: %s" % c)
84
85 def _on_change(self) -> None:
86 signals.keybindings_change.send()

Callers 3

addMethod · 0.95
removeMethod · 0.95
load_pathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected