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

Method construct_scalar

ext/src/python_libs/pyyaml3/constructor.py:159–164  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

157class SafeConstructor(BaseConstructor):
158
159 def construct_scalar(self, node):
160 if isinstance(node, MappingNode):
161 for key_node, value_node in node.value:
162 if key_node.tag == 'tag:yaml.org,2002:value':
163 return self.construct_scalar(value_node)
164 return super().construct_scalar(node)
165
166 def flatten_mapping(self, node):
167 merge = []

Callers 7

construct_yaml_nullMethod · 0.95
construct_yaml_boolMethod · 0.95
construct_yaml_intMethod · 0.95
construct_yaml_floatMethod · 0.95
construct_yaml_binaryMethod · 0.95
construct_yaml_strMethod · 0.95

Calls 1

construct_scalarMethod · 0.45

Tested by

no test coverage detected