MCPcopy Create free account
hub / github.com/doldecomp/mkdd / cleandict

Function cleandict

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

Source from the content-addressed store, hash-verified

1763 add_category(category.id, category.name)
1764
1765 def cleandict(d):
1766 if isinstance(d, dict):
1767 return {k: cleandict(v) for k, v in d.items() if v is not None}
1768 elif isinstance(d, list):
1769 return [cleandict(v) for v in d]
1770 else:
1771 return d
1772
1773 # Write objdiff.json
1774 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