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
0ee43518
Kaydet (Commit)
0ee43518
authored
Agu 21, 2006
tarafından
Alex Martelli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed minidom.py to work correctly with new-style classes (since
there are no other kinds of classes in Py3K).
üst
00ee7baf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
minidom.py
Lib/xml/dom/minidom.py
+5
-1
No files found.
Lib/xml/dom/minidom.py
Dosyayı görüntüle @
0ee43518
...
@@ -359,6 +359,8 @@ class Attr(Node):
...
@@ -359,6 +359,8 @@ class Attr(Node):
# nodeValue and value are set elsewhere
# nodeValue and value are set elsewhere
def
_get_localName
(
self
):
def
_get_localName
(
self
):
if
'localName'
in
self
.
__dict__
:
return
self
.
__dict__
[
'localName'
]
return
self
.
nodeName
.
split
(
":"
,
1
)[
-
1
]
return
self
.
nodeName
.
split
(
":"
,
1
)[
-
1
]
def
_get_name
(
self
):
def
_get_name
(
self
):
...
@@ -662,6 +664,8 @@ class Element(Node):
...
@@ -662,6 +664,8 @@ class Element(Node):
# namespaces.
# namespaces.
def
_get_localName
(
self
):
def
_get_localName
(
self
):
if
'localName'
in
self
.
__dict__
:
return
self
.
__dict__
[
'localName'
]
return
self
.
tagName
.
split
(
":"
,
1
)[
-
1
]
return
self
.
tagName
.
split
(
":"
,
1
)[
-
1
]
def
_get_tagName
(
self
):
def
_get_tagName
(
self
):
...
@@ -1118,7 +1122,7 @@ def _get_containing_entref(node):
...
@@ -1118,7 +1122,7 @@ def _get_containing_entref(node):
return
None
return
None
class
Comment
(
Ch
ildless
,
Ch
aracterData
):
class
Comment
(
CharacterData
):
nodeType
=
Node
.
COMMENT_NODE
nodeType
=
Node
.
COMMENT_NODE
nodeName
=
"#comment"
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