Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
49a5d03a
Kaydet (Commit)
49a5d03a
authored
Kas 30, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Synchronize with minidom from PyXML (revision 1.35).
üst
381832ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
minidom.py
Lib/xml/dom/minidom.py
+5
-5
No files found.
Lib/xml/dom/minidom.py
Dosyayı görüntüle @
49a5d03a
...
@@ -18,7 +18,7 @@ import string
...
@@ -18,7 +18,7 @@ import string
_string
=
string
_string
=
string
del
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:
# localize the types, and allow support for Unicode values if available:
import
types
import
types
...
@@ -329,7 +329,7 @@ class Attr(Node):
...
@@ -329,7 +329,7 @@ class Attr(Node):
ownerElement
=
None
ownerElement
=
None
childNodeTypes
=
(
Node
.
TEXT_NODE
,
Node
.
ENTITY_REFERENCE_NODE
)
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
# skip setattr for performance
d
=
self
.
__dict__
d
=
self
.
__dict__
d
[
"localName"
]
=
localName
or
qName
d
[
"localName"
]
=
localName
or
qName
...
@@ -394,7 +394,7 @@ class NamedNodeMap:
...
@@ -394,7 +394,7 @@ class NamedNodeMap:
def
itemsNS
(
self
):
def
itemsNS
(
self
):
L
=
[]
L
=
[]
for
node
in
self
.
_attrs
.
values
():
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
return
L
def
keys
(
self
):
def
keys
(
self
):
...
@@ -468,7 +468,7 @@ class Element(Node):
...
@@ -468,7 +468,7 @@ class Element(Node):
Node
.
COMMENT_NODE
,
Node
.
TEXT_NODE
,
Node
.
COMMENT_NODE
,
Node
.
TEXT_NODE
,
Node
.
CDATA_SECTION_NODE
,
Node
.
ENTITY_REFERENCE_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
):
localName
=
None
):
Node
.
__init__
(
self
)
Node
.
__init__
(
self
)
self
.
tagName
=
self
.
nodeName
=
tagName
self
.
tagName
=
self
.
nodeName
=
tagName
...
@@ -754,7 +754,7 @@ def _nssplit(qualifiedName):
...
@@ -754,7 +754,7 @@ def _nssplit(qualifiedName):
if
len
(
fields
)
==
2
:
if
len
(
fields
)
==
2
:
return
fields
return
fields
elif
len
(
fields
)
==
1
:
elif
len
(
fields
)
==
1
:
return
(
''
,
fields
[
0
])
return
(
None
,
fields
[
0
])
class
DocumentType
(
Node
):
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