Merge branch 'master' of ansgar.seatribe.se:/usr/local/src/wrw
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 15 Jan 2017 03:24:39 +0000 (04:24 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 15 Jan 2017 03:24:39 +0000 (04:24 +0100)
Conflicts:
wrw/sp/cons.py

1  2 
wrw/sp/cons.py

diff --combined wrw/sp/cons.py
@@@ -1,4 -1,4 +1,4 @@@
 -import sys, collections.abc
 +import sys, collections
  import xml.dom.minidom
  
  class node(object):
@@@ -63,12 -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):
 +        elif isinstance(child, collections.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: