summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-02-13 10:03:30 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-02-13 10:03:30 (GMT)
commita72a98f24a19928e31dcc4cab2cd2ad0f1846e11 (patch)
treead529c9dde015c31cd942875a78de8e6eb52da58 /Modules
parentd1c7b1afe8eb49bc7ef3bbcae391e763c695d195 (diff)
downloadcpython-a72a98f24a19928e31dcc4cab2cd2ad0f1846e11.zip
cpython-a72a98f24a19928e31dcc4cab2cd2ad0f1846e11.tar.gz
cpython-a72a98f24a19928e31dcc4cab2cd2ad0f1846e11.tar.bz2
Issue #13988: cElementTree is deprecated and the _elementtree accelerator is automatically used whenever available.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index af7661e..78d8177 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -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 @@ xmlparser_setevents(XMLParserObject* self, PyObject* args)
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 @@ PyInit__elementtree(void)
#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);