MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / load_manifest

Function load_manifest

data/scripts/opencc_resources_zip_diff.py:50–57  ·  view source on GitHub ↗
(entries)

Source from the content-addressed store, hash-verified

48
49
50def load_manifest(entries):
51 entry = entries.get(MANIFEST_NAME)
52 if not entry:
53 return {}
54 try:
55 return json.loads(decode_text(MANIFEST_NAME, entry["data"]))
56 except json.JSONDecodeError as error:
57 raise ValueError(f"{MANIFEST_NAME}: invalid JSON: {error}") from error
58
59
60def parse_dict(text):

Callers 1

write_reportFunction · 0.85

Calls 2

decode_textFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected