[Lxml-checkins] r33838 - lxml/trunk/src/lxml
scoder at codespeak.net
scoder at codespeak.net
Sat Oct 28 21:53:56 CEST 2006
Author: scoder
Date: Sat Oct 28 21:53:53 2006
New Revision: 33838
Modified:
lxml/trunk/src/lxml/parser.pxi
Log:
reverted to only calling xmlClearParserCtxt() when ctxt was initialised
Modified: lxml/trunk/src/lxml/parser.pxi
==============================================================================
--- lxml/trunk/src/lxml/parser.pxi (original)
+++ lxml/trunk/src/lxml/parser.pxi Sat Oct 28 21:53:53 2006
@@ -392,11 +392,8 @@
cdef xmlParserCtxt* pctxt
pctxt = self._parser_ctxt
if pctxt is not NULL:
- if pctxt.spaceTab is NULL:
- # work around bug in libxml2
- pctxt.spaceTab = <int*> tree.xmlMalloc(10 * sizeof(int))
- pctxt.spaceMax = 10
- xmlparser.xmlClearParserCtxt(pctxt)
+ if pctxt.spaceTab is not NULL: # work around bug in libxml2
+ xmlparser.xmlClearParserCtxt(pctxt)
property error_log:
def __get__(self):
More information about the lxml-checkins
mailing list