mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Only reset _is_empty if needed.
This commit is contained in:
parent
df85f0b09f
commit
27c4e09a62
1 changed files with 1 additions and 1 deletions
|
@ -166,10 +166,10 @@ class ESISReader(xml.sax.xmlreader.XMLReader):
|
|||
elif token == '(':
|
||||
if self._is_empty:
|
||||
self._empties[data] = 1
|
||||
self._is_empty = 0
|
||||
if handler:
|
||||
handler.startElement(data, self._attributes)
|
||||
self._attrs.clear()
|
||||
self._is_empty = 0
|
||||
elif token == 'A':
|
||||
name, value = data.split(' ', 1)
|
||||
if value != "IMPLIED":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue