Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
14b4feac
Commit
14b4feac
authored
Dec 14, 2005
by
Fredrik Lundh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed to _elementtree (for Python 2.5)
parent
0c53bfd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Modules/_elementtree.c
Modules/_elementtree.c
+4
-4
No files found.
Modules/_elementtree.c
View file @
14b4feac
...
...
@@ -2522,7 +2522,7 @@ static PyMethodDef _functions[] = {
};
DL_EXPORT
(
void
)
init
cElementT
ree
(
void
)
init
_elementt
ree
(
void
)
{
PyObject
*
m
;
PyObject
*
g
;
...
...
@@ -2537,7 +2537,7 @@ initcElementTree(void)
XMLParser_Type
.
ob_type
=
&
PyType_Type
;
#endif
m
=
Py_InitModule
(
"
cElementT
ree"
,
_functions
);
m
=
Py_InitModule
(
"
_elementt
ree"
,
_functions
);
/* python glue code */
...
...
@@ -2554,13 +2554,13 @@ initcElementTree(void)
"from copy import copy, deepcopy
\n
"
"try:
\n
"
" from
element
tree import ElementTree
\n
"
" from
xml.e
tree 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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment