MCPcopy
hub / github.com/mitmproxy/mitmproxy / fixlen_r

Function fixlen_r

mitmproxy/tools/console/common.py:154–158  ·  view source on GitHub ↗
(s: str, maxlen: int)

Source from the content-addressed store, hash-verified

152
153
154def fixlen_r(s: str, maxlen: int) -> str:
155 if len(s) <= maxlen:
156 return s.rjust(maxlen)
157 else:
158 return SYMBOL_ELLIPSIS + s[len(s) - maxlen + len(SYMBOL_ELLIPSIS) :]
159
160
161def render_marker(marker: str) -> str:

Callers 3

format_http_flow_tableFunction · 0.85
format_message_flowFunction · 0.85
format_dns_flowFunction · 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…