MCPcopy
hub / github.com/mitmproxy/mitmproxy / dump

Function dump

mitmproxy/io/tnetstring.py:62–67  ·  view source on GitHub ↗

This function dumps a python object as a tnetstring and writes it to the given file.

(value: TSerializable, file_handle: BinaryIO)

Source from the content-addressed store, hash-verified

60
61
62def dump(value: TSerializable, file_handle: BinaryIO) -> None:
63 """
64 This function dumps a python object as a tnetstring and
65 writes it to the given file.
66 """
67 file_handle.write(dumps(value))
68
69
70def _rdumpq(q: collections.deque, size: int, value: TSerializable) -> int:

Callers

nothing calls this directly

Calls 2

dumpsFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…