MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / get_data

Method get_data

mitmproxy/tools/console/grideditor/col_text.py:33–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 super().__init__(str(data).encode(*self.encoding_args)) # type: ignore
32
33 def get_data(self):
34 data = super().get_data() # type: ignore
35 try:
36 return data.decode(*self.encoding_args)
37 except ValueError:
38 signals.status_message.send(message="Invalid encoding.")
39 raise
40
41
42# urwid forces a different name for a subclass.

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected