未验证 提交 b2ff82fc 编写于 作者: C Caio Carrara

Merge remote-tracking branch 'clebergnu/yaml_to_mux_unused'

Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
......@@ -66,11 +66,6 @@ class _BaseLoader(Loader):
lambda *_: mux.Control(YAML_FILTER_OUT))
class Value(tuple): # Few methods pylint: disable=R0903
"""Used to mark values to simplify checking for node vs. value"""
class ListOfNodeObjects(list): # Few methods pylint: disable=R0903
"""
......@@ -78,11 +73,6 @@ class ListOfNodeObjects(list): # Few methods pylint: disable=R0903
"""
class MappingDict(dict):
"""Object representing mapping"""
def _create_from_yaml(path, cls_node=mux.MuxTreeNode):
"""Create tree structure from yaml stream"""
def tree_node_from_values(name, values):
......@@ -230,7 +220,7 @@ def _create_from_yaml(path, cls_node=mux.MuxTreeNode):
elif values is None: # Empty node
objects.append(cls_node(str(name)))
else: # Values
objects.append(Value((name, values)))
objects.append((name, values))
return objects
def mux_loader(loader, obj):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册