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' into python3
[wrw.git]
/
wrw
/
sp
/
cons.py
diff --git
a/wrw/sp/cons.py
b/wrw/sp/cons.py
index
eec2e82
..
74a6ea6
100644
(file)
--- a/
wrw/sp/cons.py
+++ b/
wrw/sp/cons.py
@@
-1,9
+1,7
@@
import xml.dom.minidom
class node(object):
import xml.dom.minidom
class node(object):
- def __str__(self):
- doc = xml.dom.minidom.Document()
- return self.__todom__(doc).toxml()
+ pass
class text(node, str):
def __todom__(self, doc):
class text(node, str):
def __todom__(self, doc):
@@
-36,6
+34,10
@@
class element(node):
el.appendChild(child.__todom__(doc))
return el
el.appendChild(child.__todom__(doc))
return el
+ def __str__(self):
+ doc = xml.dom.minidom.Document()
+ return self.__todom__(doc).toxml()
+
class context(object):
def __init__(self):
self.nodeconv = {}
class context(object):
def __init__(self):
self.nodeconv = {}