diff Modules/_elementtree.c @ 74903:65fc79fb4eb2

Issue #13988: cElementTree is deprecated and the _elementtree accelerator is automatically used whenever available.
author Florent Xicluna <florent.xicluna@gmail.com>
date Mon, 13 Feb 2012 11:03:30 +0100
parents 31dfb4be934d
children ce1c26cbe5fb
line wrap: on
line diff
--- a/Modules/_elementtree.c	Mon Feb 13 11:42:29 2012 +0200
+++ b/Modules/_elementtree.c	Mon Feb 13 11:03:30 2012 +0100
@@ -70,7 +70,7 @@
    helps if you have lots of leaf nodes with attributes). */
 
 /* Also note that pymalloc always allocates blocks in multiples of
-   eight bytes.  For the current version of cElementTree, this means
+   eight bytes.  For the current C version of ElementTree, this means
    that the number of children should be an even number, at least on
    32-bit platforms. */
 
@@ -2649,7 +2649,7 @@
     if (!TreeBuilder_CheckExact(self->target)) {
         PyErr_SetString(
             PyExc_TypeError,
-            "event handling only supported for cElementTree.Treebuilder "
+            "event handling only supported for ElementTree.TreeBuilder "
             "targets"
             );
         return NULL;
@@ -2906,7 +2906,7 @@
 #endif
 
     elementtree_parseerror_obj = PyErr_NewException(
-        "cElementTree.ParseError", PyExc_SyntaxError, NULL
+        "xml.etree.ElementTree.ParseError", PyExc_SyntaxError, NULL
         );
     Py_INCREF(elementtree_parseerror_obj);
     PyModule_AddObject(m, "ParseError", elementtree_parseerror_obj);