MCPcopy
hub / github.com/mitmproxy/mitmproxy / tokenize

Function tokenize

test/mitmproxy/tools/console/conftest.py:13–20  ·  view source on GitHub ↗
(input: str)

Source from the content-addressed store, hash-verified

11
12
13def tokenize(input: str) -> list[str]:
14 keys = []
15 for i, k in enumerate(re.split("[<>]", input)):
16 if i % 2:
17 keys.append(k)
18 else:
19 keys.extend(k)
20 return keys
21
22
23class ConsoleTestMaster(ConsoleMaster):

Callers 1

typeMethod · 0.70

Calls 3

splitMethod · 0.45
appendMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…