Comment 4 for bug 1551797

Revision history for this message
Vojtěch Fried (vojtechfried) wrote :

Hi,
this fix actually broke lxml for me. We are using lxml in multiple threads. Unfortunately, unlike the libxml2 version (xmlSetGenericErrorFunc), the libxslt version (xsltSetGenericErrorFunc) is not thread safe, but is a global. So it cannot be safely used in multithreaded scenarios. Unless it is fixed in libxslt, the best thing to do in lxml is I think to make a build switch that would turn xsltSetGenericErrorFunc off.