From: Fred Drake Date: Wed, 16 Oct 2002 16:02:08 +0000 (+0000) Subject: Only reset _is_empty if needed. X-Git-Tag: v2.3c1~3767 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27c4e09a62cc43fa8ce7dcd142a93d8c9411287f;p=thirdparty%2FPython%2Fcpython.git Only reset _is_empty if needed. --- diff --git a/Doc/tools/sgmlconv/esistools.py b/Doc/tools/sgmlconv/esistools.py index 6c7c0ae200e7..b9c029b08daf 100644 --- a/Doc/tools/sgmlconv/esistools.py +++ b/Doc/tools/sgmlconv/esistools.py @@ -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":