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

Function load

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

Parse the first YAML document in a stream and produce the corresponding Python object.

(stream, Loader=Loader)

Source from the content-addressed store, hash-verified

63 loader.dispose()
64
65def load(stream, Loader=Loader):
66 """
67 Parse the first YAML document in a stream
68 and produce the corresponding Python object.
69 """
70 loader = Loader(stream)
71 try:
72 return loader.get_single_data()
73 finally:
74 loader.dispose()
75
76def load_all(stream, Loader=Loader):
77 """

Callers 1

safe_loadFunction · 0.70

Calls 3

get_single_dataMethod · 0.80
LoaderClass · 0.70
disposeMethod · 0.45

Tested by

no test coverage detected