Kaydet (Commit) 55b4efd0 authored tarafından Lars Gustäbel's avatar Lars Gustäbel

Fixed minor problem with reset().

üst 68692452
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment