MCPcopy Create free account
hub / github.com/ablab/spades / compose

Function compose

ext/src/python_libs/pyyaml3/__init__.py:42–51  ·  view source on GitHub ↗

Parse the first YAML document in a stream and produce the corresponding representation tree.

(stream, Loader=Loader)

Source from the content-addressed store, hash-verified

40 loader.dispose()
41
42def compose(stream, Loader=Loader):
43 """
44 Parse the first YAML document in a stream
45 and produce the corresponding representation tree.
46 """
47 loader = Loader(stream)
48 try:
49 return loader.get_single_node()
50 finally:
51 loader.dispose()
52
53def compose_all(stream, Loader=Loader):
54 """

Callers

nothing calls this directly

Calls 3

get_single_nodeMethod · 0.80
LoaderClass · 0.70
disposeMethod · 0.45

Tested by

no test coverage detected