Commit 4abcffb2 authored by Fred Drake's avatar Fred Drake

Don't pass around a list of known empty elements, since the ESIS

contains "e" events for them.  This wasn't used anyway.
parent 46e9705e
......@@ -22,9 +22,10 @@ def format_attrs(attrs):
return s
def do_convert(ifp, ofp, knownempties, xml=0):
def do_convert(ifp, ofp, xml=0):
attrs = {}
lastopened = None
knownempties = []
knownempty = 0
lastempty = 0
while 1:
......@@ -79,12 +80,12 @@ def do_convert(ifp, ofp, knownempties, xml=0):
knownempty = 1
def sgml_convert(ifp, ofp, knownempties=()):
return do_convert(ifp, ofp, list(knownempties), xml=0)
def sgml_convert(ifp, ofp):
return do_convert(ifp, ofp, xml=0)
def xml_convert(ifp, ofp, knownempties=()):
return do_convert(ifp, ofp, list(knownempties), xml=1)
def xml_convert(ifp, ofp):
return do_convert(ifp, ofp, xml=1)
def main():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment