Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
13
def
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
23
class
ConsoleTestMaster(ConsoleMaster):
Callers
1
type
Method · 0.70
Calls
3
split
Method · 0.45
append
Method · 0.45
extend
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…