Dolda2000 GitWeb
/
wrw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.dolda.net/wrw
[wrw.git]
/
wrw
/
sp
/
cons.py
diff --git
a/wrw/sp/cons.py
b/wrw/sp/cons.py
index
8ffa397
..
d8b30a8
100644
(file)
--- a/
wrw/sp/cons.py
+++ b/
wrw/sp/cons.py
@@
-1,4
+1,4
@@
-import sys, collections
.abc
+import sys, collections
import xml.dom.minidom
class node(object):
import xml.dom.minidom
class node(object):
@@
-63,12
+63,12
@@
class context(object):
return
new = self.nodefrom(child)
if new is not None:
return
new = self.nodefrom(child)
if new is not None:
- node.children.append(
self.nodefrom(child)
)
- elif isinstance(child, collections.
abc.
Iterable):
+ node.children.append(
new
)
+ elif isinstance(child, collections.Iterable):
for ch in child:
self.addchild(node, ch)
else:
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:
def addattr(self, node, k, v):
if v is not None: