提交 86ba2b0a 编写于 作者: C Cleber Rosa

YAML to Mux: remove unused Value class

The reason for this to exist was supposedly identify (inheritance)
checks, but none of these actually exist.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 5e528767
......@@ -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
"""
......@@ -225,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.
先完成此消息的编辑!
想要评论请 注册