MCPcopy Create free account
hub / github.com/RylonW/DocNLC / dict_constructor

Function dict_constructor

utils/util.py:30–31  ·  view source on GitHub ↗
(loader, node)

Source from the content-addressed store, hash-verified

28 return dumper.represent_dict(data.items())
29
30 def dict_constructor(loader, node):
31 return OrderedDict(loader.construct_pairs(node))
32
33 Dumper.add_representer(OrderedDict, dict_representer)
34 Loader.add_constructor(_mapping_tag, dict_constructor)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected