MCPcopy 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
174def 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
181DATA_TYPE_MAP = {

Callers 1

normalize_graph_configFunction · 0.85

Calls 1

mace_checkFunction · 0.90

Tested by

no test coverage detected