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

Function _fmt_entry

test/mitmproxy/proxy/tutils.py:72–78  ·  view source on GitHub ↗
(x: PlaybookEntry)

Source from the content-addressed store, hash-verified

70
71
72def _fmt_entry(x: PlaybookEntry):
73 arrow = ">>" if isinstance(x, events.Event) else "<<"
74 x = str(x)
75 x = re.sub("Placeholder:None", "<unset placeholder>", x, flags=re.IGNORECASE)
76 x = re.sub("Placeholder:", "", x, flags=re.IGNORECASE)
77 x = textwrap.indent(x, " ")[5:]
78 return f"{arrow} {x}"
79
80
81def _merge_sends(

Callers 1

__bool__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…