From: Fredrik Tolf Date: Sat, 14 Jan 2017 19:08:45 +0000 (+0100) Subject: Fixed some SP node conversion bugs. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=8f33b1dec22f0e1e66a0938546a3da4be1f57ae9;p=wrw.git Fixed some SP node conversion bugs. --- 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: