[Python-checkins] commit of r41683 - python/trunk/Modules/_elementtree.c
fredrik.lundh
python-checkins at python.org
Wed Dec 14 22:46:42 CET 2005
Author: fredrik.lundh
Date: Wed Dec 14 22:46:41 2005
New Revision: 41683
Modified:
python/trunk/Modules/_elementtree.c
Log:
renamed to _elementtree (for Python 2.5)
Modified: python/trunk/Modules/_elementtree.c
==============================================================================
--- python/trunk/Modules/_elementtree.c (original)
+++ python/trunk/Modules/_elementtree.c Wed Dec 14 22:46:41 2005
@@ -2522,7 +2522,7 @@
};
DL_EXPORT(void)
-initcElementTree(void)
+init_elementtree(void)
{
PyObject* m;
PyObject* g;
@@ -2537,7 +2537,7 @@
XMLParser_Type.ob_type = &PyType_Type;
#endif
- m = Py_InitModule("cElementTree", _functions);
+ m = Py_InitModule("_elementtree", _functions);
/* python glue code */
@@ -2554,13 +2554,13 @@
"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"
More information about the Python-checkins
mailing list