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
49a5d03a
Commit
49a5d03a
authored
Nov 30, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Synchronize with minidom from PyXML (revision 1.35).
parent
381832ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/xml/dom/minidom.py
Lib/xml/dom/minidom.py
+5
-5
No files found.
Lib/xml/dom/minidom.py
View file @
49a5d03a
...
...
@@ -18,7 +18,7 @@ import string
_string
=
string
del
string
from
xml.dom
import
HierarchyRequestErr
from
xml.dom
import
HierarchyRequestErr
,
EMPTY_NAMESPACE
# localize the types, and allow support for Unicode values if available:
import
types
...
...
@@ -329,7 +329,7 @@ class Attr(Node):
ownerElement
=
None
childNodeTypes
=
(
Node
.
TEXT_NODE
,
Node
.
ENTITY_REFERENCE_NODE
)
def
__init__
(
self
,
qName
,
namespaceURI
=
""
,
localName
=
None
,
prefix
=
None
):
def
__init__
(
self
,
qName
,
namespaceURI
=
EMPTY_NAMESPACE
,
localName
=
None
,
prefix
=
None
):
# skip setattr for performance
d
=
self
.
__dict__
d
[
"localName"
]
=
localName
or
qName
...
...
@@ -394,7 +394,7 @@ class NamedNodeMap:
def
itemsNS
(
self
):
L
=
[]
for
node
in
self
.
_attrs
.
values
():
L
.
append
(((
node
.
URI
,
node
.
localName
),
node
.
value
))
L
.
append
(((
node
.
namespace
URI
,
node
.
localName
),
node
.
value
))
return
L
def
keys
(
self
):
...
...
@@ -468,7 +468,7 @@ class Element(Node):
Node
.
COMMENT_NODE
,
Node
.
TEXT_NODE
,
Node
.
CDATA_SECTION_NODE
,
Node
.
ENTITY_REFERENCE_NODE
)
def
__init__
(
self
,
tagName
,
namespaceURI
=
None
,
prefix
=
""
,
def
__init__
(
self
,
tagName
,
namespaceURI
=
EMPTY_NAMESPACE
,
prefix
=
None
,
localName
=
None
):
Node
.
__init__
(
self
)
self
.
tagName
=
self
.
nodeName
=
tagName
...
...
@@ -754,7 +754,7 @@ def _nssplit(qualifiedName):
if
len
(
fields
)
==
2
:
return
fields
elif
len
(
fields
)
==
1
:
return
(
''
,
fields
[
0
])
return
(
None
,
fields
[
0
])
class
DocumentType
(
Node
):
...
...
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