summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2005-12-14 21:46:41 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2005-12-14 21:46:41 (GMT)
commit14b4feac6aa90df94422cb006231a49fa97794bc (patch)
tree2b0b1ca2f36920238ce5492ccd1f1f668152945e
parent0c53bfd374e6db1c7891a50fb596cf5def69cc8f (diff)
downloadcpython-14b4feac6aa90df94422cb006231a49fa97794bc.zip
cpython-14b4feac6aa90df94422cb006231a49fa97794bc.tar.gz
cpython-14b4feac6aa90df94422cb006231a49fa97794bc.tar.bz2
renamed to _elementtree (for Python 2.5)
-rw-r--r--Modules/_elementtree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 3739fd6..1c12def 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -2522,7 +2522,7 @@ static PyMethodDef _functions[] = {
};
DL_EXPORT(void)
-initcElementTree(void)
+init_elementtree(void)
{
PyObject* m;
PyObject* g;
@@ -2537,7 +2537,7 @@ initcElementTree(void)
XMLParser_Type.ob_type = &PyType_Type;
#endif
- m = Py_InitModule("cElementTree", _functions);
+ m = Py_InitModule("_elementtree", _functions);
/* python glue code */
@@ -2554,13 +2554,13 @@ initcElementTree(void)
"from copy import copy, deepcopy\n"
"try:\n"
- " from elementtree import ElementTree\n"
+ " from xml.etree import ElementTree\n"
"except ImportError:\n"
" import ElementTree\n"
"ET = ElementTree\n"
"del ElementTree\n"
- "import cElementTree\n"
+ "import _elementtree as cElementTree\n"
"try:\n" /* check if copy works as is */
" copy(cElementTree.Element('x'))\n"