From 8f33b1dec22f0e1e66a0938546a3da4be1f57ae9 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 14 Jan 2017 20:08:45 +0100 Subject: [PATCH] Fixed some SP node conversion bugs. --- wrw/sp/cons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index 8ffa397..b9437bf 100644 --- a/wrw/sp/cons.py +++ b/wrw/sp/cons.py @@ -63,12 +63,12 @@ class context(object): return new = self.nodefrom(child) if new is not None: - node.children.append(self.nodefrom(child)) + node.children.append(new) elif isinstance(child, collections.abc.Iterable): for ch in child: self.addchild(node, ch) else: - raise Exception("No node conversion known for %s objects" % str(type(ob))) + raise Exception("No node conversion known for %s objects" % str(type(child))) def addattr(self, node, k, v): if v is not None: -- 2.11.0