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

scoder at codespeak.net scoder at codespeak.net
Mon Mar 5 17:49:20 CET 2007


Author: scoder
Date: Mon Mar  5 17:49:18 2007
New Revision: 39965

Modified:
   lxml/trunk/src/lxml/parser.pxi
Log:
set error return to -1 instead of 1

Modified: lxml/trunk/src/lxml/parser.pxi
==============================================================================
--- lxml/trunk/src/lxml/parser.pxi	(original)
+++ lxml/trunk/src/lxml/parser.pxi	Mon Mar  5 17:49:18 2007
@@ -406,7 +406,7 @@
             if pctxt.spaceTab is not NULL: # work around bug in libxml2
                 xmlparser.xmlClearParserCtxt(pctxt)
 
-    cdef int _lockParser(self) except 1:
+    cdef int _lockParser(self) except -1:
         cdef python.PyThreadState* state
         cdef int result
         if config.ENABLE_THREADING and self._parser_lock != NULL:


More information about the lxml-checkins mailing list