MCPcopy
hub / github.com/mitmproxy/mitmproxy / truncated_plain

Function truncated_plain

mitmproxy/tools/console/common.py:222–223  ·  view source on GitHub ↗
(text, attr, align="left")

Source from the content-addressed store, hash-verified

220
221
222def truncated_plain(text, attr, align="left"):
223 return TruncatedText(text, [(attr, len(text.encode()))], align)
224
225
226# Work around https://github.com/urwid/urwid/pull/330

Callers 4

format_http_flow_listFunction · 0.85
format_http_flow_tableFunction · 0.85
format_message_flowFunction · 0.85
format_dns_flowFunction · 0.85

Calls 2

TruncatedTextClass · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…