[z3-checkins] r35492 - z3/deliverance/trunk/deliverance

ianb at codespeak.net ianb at codespeak.net
Fri Dec 8 17:31:53 CET 2006


Author: ianb
Date: Fri Dec  8 17:31:51 2006
New Revision: 35492

Modified:
   z3/deliverance/trunk/deliverance/utils.py
Log:
Add warnings about lxml threading issues in Python 2.4.1 and earlier

Modified: z3/deliverance/trunk/deliverance/utils.py
==============================================================================
--- z3/deliverance/trunk/deliverance/utils.py	(original)
+++ z3/deliverance/trunk/deliverance/utils.py	Fri Dec  8 17:31:51 2006
@@ -3,6 +3,7 @@
 import urlparse
 import copy
 from deliverance import htmlserialize
+import sys
 
 # Test if the libxml2 fix is in place
 html = etree.HTML('<html><head><script>some text</script></head></html>')
@@ -18,6 +19,12 @@
     warnings.warn(
         'Deliverance requires a newer version of lxml (1.2 or later)')
 
+if sys.version_info <= (2, 4, 1):
+    # There are reported threading issues for this version
+    import warnings
+    warnings.warn(
+        'lxml has threading problems for Python 2.4.1 and earlier')
+
 class DeliveranceError(Exception):
     """
     General Deliverance Error.


More information about the z3-checkins mailing list