mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Don't pass around a list of known empty elements, since the ESIS
contains "e" events for them. This wasn't used anyway.
This commit is contained in:
parent
46e9705eca
commit
4abcffb233
1 changed files with 6 additions and 5 deletions
|
|
@ -22,9 +22,10 @@ def format_attrs(attrs):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
||||||
def do_convert(ifp, ofp, knownempties, xml=0):
|
def do_convert(ifp, ofp, xml=0):
|
||||||
attrs = {}
|
attrs = {}
|
||||||
lastopened = None
|
lastopened = None
|
||||||
|
knownempties = []
|
||||||
knownempty = 0
|
knownempty = 0
|
||||||
lastempty = 0
|
lastempty = 0
|
||||||
while 1:
|
while 1:
|
||||||
|
|
@ -79,12 +80,12 @@ def do_convert(ifp, ofp, knownempties, xml=0):
|
||||||
knownempty = 1
|
knownempty = 1
|
||||||
|
|
||||||
|
|
||||||
def sgml_convert(ifp, ofp, knownempties=()):
|
def sgml_convert(ifp, ofp):
|
||||||
return do_convert(ifp, ofp, list(knownempties), xml=0)
|
return do_convert(ifp, ofp, xml=0)
|
||||||
|
|
||||||
|
|
||||||
def xml_convert(ifp, ofp, knownempties=()):
|
def xml_convert(ifp, ofp):
|
||||||
return do_convert(ifp, ofp, list(knownempties), xml=1)
|
return do_convert(ifp, ofp, xml=1)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue