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

scoder at codespeak.net scoder at codespeak.net
Mon May 14 10:34:28 CEST 2007


Author: scoder
Date: Mon May 14 10:34:28 2007
New Revision: 43349

Modified:
   lxml/trunk/src/lxml/xpath.pxi
Log:
cleanup

Modified: lxml/trunk/src/lxml/xpath.pxi
==============================================================================
--- lxml/trunk/src/lxml/xpath.pxi	(original)
+++ lxml/trunk/src/lxml/xpath.pxi	Mon May 14 10:34:28 2007
@@ -167,11 +167,8 @@
 
     cdef _raise_eval_error(self):
         entries = self._error_log.filter_types(_XPATH_EVAL_ERRORS)
-        if entries:
-            entry = entries[0]
-            if entry is not None and entry.message:
-                raise XPathEvalError, entry.message
-        entries = self._error_log.filter_types(_XPATH_SYNTAX_ERRORS)
+        if not entries:
+            entries = self._error_log.filter_types(_XPATH_SYNTAX_ERRORS)
         if entries:
             entry = entries[0]
             if entry is not None and entry.message:


More information about the lxml-checkins mailing list