MCPcopy
hub / github.com/mitmproxy/mitmproxy / parse

Method parse

mitmproxy/types.py:133–134  ·  view source on GitHub ↗
(self, manager: "CommandManager", t: type, s: str)

Source from the content-addressed store, hash-verified

131 return []
132
133 def parse(self, manager: "CommandManager", t: type, s: str) -> str:
134 return self.escape_sequences.sub(self._unescape, s)
135
136 def is_valid(self, manager: "CommandManager", typ: Any, val: Any) -> bool:
137 return isinstance(val, str)

Callers 15

run_testsFunction · 0.45
test_parse_errMethod · 0.45
test_simpleMethod · 0.45
test_non_asciiMethod · 0.45
test_naked_urlMethod · 0.45
test_quotingMethod · 0.45
test_nestingMethod · 0.45
test_notMethod · 0.45
test_binaryopsMethod · 0.45
test_wideopsMethod · 0.45
qMethod · 0.45
qMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_parse_errMethod · 0.36
test_simpleMethod · 0.36
test_non_asciiMethod · 0.36
test_naked_urlMethod · 0.36
test_quotingMethod · 0.36
test_nestingMethod · 0.36
test_notMethod · 0.36
test_binaryopsMethod · 0.36
test_wideopsMethod · 0.36
qMethod · 0.36
qMethod · 0.36
qMethod · 0.36