MCPcopy
hub / github.com/mitmproxy/mitmproxy / read_tnetstring

Function read_tnetstring

test/helper_tools/inspect_dumpfile.py:9–17  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

7
8
9def read_tnetstring(input):
10 # tnetstring throw a ValueError on EOF, which is hard to catch
11 # because they raise ValueErrors for a couple of other reasons.
12 # Check for EOF to avoid this.
13 if not input.read(1):
14 return None
15 else:
16 input.seek(-1, 1)
17 return tnetstring.load(input)
18
19
20@click.command()

Callers 1

inspectFunction · 0.85

Calls 2

readMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…