Commits

Lars Gustäbel  committed 9af7fce

Fixed minor problem with reset().

  • Participants
  • Parent commits 75bfbe3
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/xml/sax/expatreader.py

 
     def feed(self, data, isFinal = 0):
         if not self._parsing:
+            self.reset()
             self._parsing = 1
-            self.reset()
             self._cont_handler.startDocument()
 
         try:
 #         self._parser.NotStandaloneHandler = 
         self._parser.ExternalEntityRefHandler = self.external_entity_ref
 
+        self._parsing = 0
         self._entity_stack = []
         
     # Locator methods