diff options
author | Fred Drake <fdrake@acm.org> | 1998-12-10 18:31:37 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-12-10 18:31:37 (GMT) |
commit | 4abcffb2338b932f7cef0a8e2c1b158af77168a3 (patch) | |
tree | 4c13b2a72cf58dc51f8244af7b91b50de154dc21 | |
parent | 46e9705ecad324b24ba7d69c6926bce051ec71fa (diff) | |
download | cpython-4abcffb2338b932f7cef0a8e2c1b158af77168a3.zip cpython-4abcffb2338b932f7cef0a8e2c1b158af77168a3.tar.gz cpython-4abcffb2338b932f7cef0a8e2c1b158af77168a3.tar.bz2 |
Don't pass around a list of known empty elements, since the ESIS
contains "e" events for them. This wasn't used anyway.
-rwxr-xr-x | Doc/tools/sgmlconv/esis2sgml.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/tools/sgmlconv/esis2sgml.py b/Doc/tools/sgmlconv/esis2sgml.py index 1271b11..172e712 100755 --- a/Doc/tools/sgmlconv/esis2sgml.py +++ b/Doc/tools/sgmlconv/esis2sgml.py @@ -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(): |