MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / _normalize_server_config

Function _normalize_server_config

MCSL2Lib/utils.py:49–54  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

47
48
49def _normalize_server_config(value: Any) -> Any:
50 if isinstance(value, dict):
51 return {k: _normalize_server_config(value[k]) for k in sorted(value.keys())}
52 if isinstance(value, list):
53 return [_normalize_server_config(item) for item in value]
54 return value
55
56
57def deep_compare_server_config(left: Dict, right: Dict) -> bool:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected