MCPcopy Create free account
hub / github.com/audeering/opensmile / _parse_property

Method _parse_property

scripts/conf2dot.py:70–76  ·  view source on GitHub ↗
(self, line: str)

Source from the content-addressed store, hash-verified

68 return Section(section_name, section_type)
69
70 def _parse_property(self, line: str) -> (str, object):
71 property_name, property_value = re.split(r"\s*=\s*", line, maxsplit=1)
72 property_value = self._expand_cm(property_value)
73 array_elements = re.split(r"\s*;\s*", property_value) # TODO: fix escaped \;
74 if len(array_elements) > 1:
75 return (property_name, array_elements)
76 return (property_name, property_value)
77
78 def _parse(self, path: str):
79 current_section = None

Callers 1

parse_lineMethod · 0.95

Calls 1

_expand_cmMethod · 0.95

Tested by

no test coverage detected