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
0ee43518
Commit
0ee43518
authored
Aug 21, 2006
by
Alex Martelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed minidom.py to work correctly with new-style classes (since
there are no other kinds of classes in Py3K).
parent
00ee7baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Lib/xml/dom/minidom.py
Lib/xml/dom/minidom.py
+5
-1
No files found.
Lib/xml/dom/minidom.py
View file @
0ee43518
...
...
@@ -359,6 +359,8 @@ class Attr(Node):
# nodeValue and value are set elsewhere
def
_get_localName
(
self
):
if
'localName'
in
self
.
__dict__
:
return
self
.
__dict__
[
'localName'
]
return
self
.
nodeName
.
split
(
":"
,
1
)[
-
1
]
def
_get_name
(
self
):
...
...
@@ -662,6 +664,8 @@ class Element(Node):
# namespaces.
def
_get_localName
(
self
):
if
'localName'
in
self
.
__dict__
:
return
self
.
__dict__
[
'localName'
]
return
self
.
tagName
.
split
(
":"
,
1
)[
-
1
]
def
_get_tagName
(
self
):
...
...
@@ -1118,7 +1122,7 @@ def _get_containing_entref(node):
return
None
class
Comment
(
Ch
ildless
,
Ch
aracterData
):
class
Comment
(
CharacterData
):
nodeType
=
Node
.
COMMENT_NODE
nodeName
=
"#comment"
...
...
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