[Lxml-checkins] r33832 - lxml/trunk/src/lxml

scoder at codespeak.net scoder at codespeak.net
Sat Oct 28 11:17:20 CEST 2006


Author: scoder
Date: Sat Oct 28 11:17:13 2006
New Revision: 33832

Modified:
   lxml/trunk/src/lxml/iterparse.pxi
Log:
lock iterparse() parser to prevent concurrent usage and call of other parser methods

Modified: lxml/trunk/src/lxml/iterparse.pxi
==============================================================================
--- lxml/trunk/src/lxml/iterparse.pxi	(original)
+++ lxml/trunk/src/lxml/iterparse.pxi	Sat Oct 28 11:17:13 2006
@@ -268,6 +268,7 @@
         context._wrapCallbacks(self._parser_ctxt.sax)
         xmlparser.xmlCtxtUseOptions(self._parser_ctxt, parse_options)
         xmlparser.xmlCtxtResetPush(self._parser_ctxt, NULL, 0, c_filename, NULL)
+        self._lockParser() # will not be unlocked - no other methods supported
 
     def __iter__(self):
         return self


More information about the lxml-checkins mailing list