diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2000-10-14 10:28:01 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2000-10-14 10:28:01 (GMT) |
commit | 55b4efd034780a069c9bbf5b080a62df32f51441 (patch) | |
tree | 8cde2172a1d29f5f018af714054a3876c327665b /Lib/xml/sax/expatreader.py | |
parent | 686924528cffa2555ffbdaad9e57375c37611779 (diff) | |
download | cpython-55b4efd034780a069c9bbf5b080a62df32f51441.zip cpython-55b4efd034780a069c9bbf5b080a62df32f51441.tar.gz cpython-55b4efd034780a069c9bbf5b080a62df32f51441.tar.bz2 |
Fixed minor problem with reset().
Diffstat (limited to 'Lib/xml/sax/expatreader.py')
-rw-r--r-- | Lib/xml/sax/expatreader.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index 1414bb5..2f9a297 100644 --- a/Lib/xml/sax/expatreader.py +++ b/Lib/xml/sax/expatreader.py @@ -69,8 +69,8 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator): def feed(self, data, isFinal = 0): if not self._parsing: - self._parsing = 1 self.reset() + self._parsing = 1 self._cont_handler.startDocument() try: @@ -117,6 +117,7 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator): # self._parser.NotStandaloneHandler = self._parser.ExternalEntityRefHandler = self.external_entity_ref + self._parsing = 0 self._entity_stack = [] # Locator methods |