MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / cleandict

Function cleandict

tools/project.py:1556–1562  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1554 add_category(category.id, category.name)
1555
1556 def cleandict(d):
1557 if isinstance(d, dict):
1558 return {k: cleandict(v) for k, v in d.items() if v is not None}
1559 elif isinstance(d, list):
1560 return [cleandict(v) for v in d]
1561 else:
1562 return d
1563
1564 # Write objdiff.json
1565 with open("objdiff.json", "w", encoding="utf-8") as w:

Callers 1

generate_objdiff_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected