[Lxml-checkins] r49760 - in lxml/trunk: . src/lxml
scoder at codespeak.net
scoder at codespeak.net
Fri Dec 14 08:42:38 CET 2007
Author: scoder
Date: Fri Dec 14 08:42:36 2007
New Revision: 49760
Modified:
lxml/trunk/ (props changed)
lxml/trunk/src/lxml/lxml.etree.pyx
Log:
r3087 at delle: sbehnel | 2007-12-09 17:54:38 +0100
cleanup
Modified: lxml/trunk/src/lxml/lxml.etree.pyx
==============================================================================
--- lxml/trunk/src/lxml/lxml.etree.pyx (original)
+++ lxml/trunk/src/lxml/lxml.etree.pyx Fri Dec 14 08:42:36 2007
@@ -639,7 +639,7 @@
if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
if element._c_node.type != tree.XML_PI_NODE:
if element._c_node.type != tree.XML_COMMENT_NODE:
- raise TypeError, "Only processing instructions and comments can be siblings of the root element"
+ raise TypeError("Only processing instructions and comments can be siblings of the root element")
element.tail = None
_appendSibling(self, element)
@@ -654,7 +654,7 @@
if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
if element._c_node.type != tree.XML_PI_NODE:
if element._c_node.type != tree.XML_COMMENT_NODE:
- raise TypeError, "Only processing instructions and comments can be siblings of the root element"
+ raise TypeError("Only processing instructions and comments can be siblings of the root element")
element.tail = None
_prependSibling(self, element)
More information about the lxml-checkins
mailing list