summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-07-29 22:13:31 (GMT)
committerFred Drake <fdrake@acm.org>1999-07-29 22:13:31 (GMT)
commitada2de67b3fc8089895ca7fae413bf64e75af3f5 (patch)
tree96b65d2c24b718f96c4baf7134a4b7a381aa6160 /Doc
parentf032cdbb2447a723e65ae76dad554e6c82032e4a (diff)
downloadcpython-ada2de67b3fc8089895ca7fae413bf64e75af3f5.zip
cpython-ada2de67b3fc8089895ca7fae413bf64e75af3f5.tar.gz
cpython-ada2de67b3fc8089895ca7fae413bf64e75af3f5.tar.bz2
Use the (new) buildFragment() method of the EsisBuilder rather than
implementing it all here.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tools/sgmlconv/esistools.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/Doc/tools/sgmlconv/esistools.py b/Doc/tools/sgmlconv/esistools.py
index 3e0ffc3..18117b5 100644
--- a/Doc/tools/sgmlconv/esistools.py
+++ b/Doc/tools/sgmlconv/esistools.py
@@ -44,7 +44,7 @@ class ExtendedEsisBuilder(xml.dom.esis_builder.EsisBuilder):
self.__empties = {}
self.__is_empty = 0
apply(xml.dom.esis_builder.EsisBuilder.__init__, (self,) + args, kw)
- self.fragment = self.document.createDocumentFragment()
+ self.buildFragment()
def feed(self, data):
for line in string.split(data, '\n'):
@@ -75,20 +75,6 @@ class ExtendedEsisBuilder(xml.dom.esis_builder.EsisBuilder):
self.__is_empty = 1
else:
sys.stderr.write('Unknown event: %s\n' % line)
-
- def push(self, node):
- "Add node to current node and move to new node."
-
- nodetype = node.get_nodeType()
- if self.current_element:
- self.current_element.insertBefore(node, None)
- elif nodetype == xml.dom.core.TEXT_NODE:
- if string.strip(node.get_nodeValue()):
- self.fragment.appendChild(node)
- else:
- self.fragment.appendChild(node)
- if nodetype == xml.dom.core.ELEMENT_NODE:
- self.current_element = node
def get_empties(self):
return self.__empties.keys()