Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XiaoMi/mace
/ parse_platform
Function
parse_platform
tools/python/utils/config_parser.py:174–178 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
172
173
174
def
parse_platform(str):
175
str = str.upper()
176
mace_check(str in [e.name
for
e in Platform],
177
"unknown platform %s"
% str)
178
return
Platform[str]
179
180
181
DATA_TYPE_MAP = {
Callers
1
normalize_graph_config
Function · 0.85
Calls
1
mace_check
Function · 0.90
Tested by
no test coverage detected