summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-12-10 18:31:37 (GMT)
committerFred Drake <fdrake@acm.org>1998-12-10 18:31:37 (GMT)
commit4abcffb2338b932f7cef0a8e2c1b158af77168a3 (patch)
tree4c13b2a72cf58dc51f8244af7b91b50de154dc21 /Doc/tools
parent46e9705ecad324b24ba7d69c6926bce051ec71fa (diff)
downloadcpython-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.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/sgmlconv/esis2sgml.py11
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():