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

scoder at codespeak.net scoder at codespeak.net
Sat Oct 27 09:48:56 CEST 2007


Author: scoder
Date: Sat Oct 27 09:48:55 2007
New Revision: 48098

Modified:
   lxml/trunk/src/lxml/apihelpers.pxi
Log:
forgotten assertions

Modified: lxml/trunk/src/lxml/apihelpers.pxi
==============================================================================
--- lxml/trunk/src/lxml/apihelpers.pxi	(original)
+++ lxml/trunk/src/lxml/apihelpers.pxi	Sat Oct 27 09:48:55 2007
@@ -815,7 +815,6 @@
     if c_node is not NULL:
         for element in elements:
             assert element is not None, "Node must not be None"
-
             # move element and tail over
             c_next = element._c_node.next
             tree.xmlAddPrevSibling(c_node, element._c_node)
@@ -838,9 +837,11 @@
     # append the remaining elements at the respective end
     if left_to_right:
         for element in elements:
+            assert element is not None, "Node must not be None"
             _appendChild(parent, element)
     else:
         for element in elements:
+            assert element is not None, "Node must not be None"
             _prependChild(parent, element)
 
     return 0


More information about the lxml-checkins mailing list