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
52ce0d08
Kaydet (Commit)
52ce0d08
authored
Ock 27, 2001
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Re-indent.
üst
d5fb58f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
__init__.py
Lib/xml/dom/__init__.py
+1
-1
minidom.py
Lib/xml/dom/minidom.py
+12
-12
pulldom.py
Lib/xml/dom/pulldom.py
+1
-1
No files found.
Lib/xml/dom/__init__.py
Dosyayı görüntüle @
52ce0d08
...
...
@@ -60,7 +60,7 @@ INVALID_ACCESS_ERR = 15
class
DOMException
(
Exception
):
"""Abstract base class for DOM exceptions.
Exceptions with specific codes are specializations of this class."""
def
__init__
(
self
,
*
args
,
**
kw
):
if
self
.
__class__
is
DOMException
:
raise
RuntimeError
(
...
...
Lib/xml/dom/minidom.py
Dosyayı görüntüle @
52ce0d08
...
...
@@ -38,7 +38,7 @@ class Node(_Node):
_makeParentNodes
=
1
debug
=
None
childNodeTypes
=
()
def
__init__
(
self
):
self
.
childNodes
=
[]
self
.
parentNode
=
None
...
...
@@ -168,9 +168,9 @@ class Node(_Node):
if
oldChild
.
nextSibling
is
not
None
:
oldChild
.
nextSibling
.
previousSibling
=
oldChild
.
previousSibling
if
oldChild
.
previousSibling
is
not
None
:
oldChild
.
previousSibling
.
nextSibling
=
oldChild
.
nextSibling
oldChild
.
previousSibling
.
nextSibling
=
oldChild
.
nextSibling
oldChild
.
nextSibling
=
oldChild
.
previousSibling
=
None
if
self
.
_makeParentNodes
:
oldChild
.
parentNode
=
None
return
oldChild
...
...
@@ -261,7 +261,7 @@ class Attr(Node):
attributes
=
None
ownerElement
=
None
childNodeTypes
=
(
Node
.
TEXT_NODE
,
Node
.
ENTITY_REFERENCE_NODE
)
def
__init__
(
self
,
qName
,
namespaceURI
=
""
,
localName
=
None
,
prefix
=
None
):
# skip setattr for performance
d
=
self
.
__dict__
...
...
@@ -391,7 +391,7 @@ class Element(Node):
childNodeTypes
=
(
Node
.
ELEMENT_NODE
,
Node
.
PROCESSING_INSTRUCTION_NODE
,
Node
.
COMMENT_NODE
,
Node
.
TEXT_NODE
,
Node
.
CDATA_SECTION_NODE
,
Node
.
ENTITY_REFERENCE_NODE
)
def
__init__
(
self
,
tagName
,
namespaceURI
=
""
,
prefix
=
""
,
localName
=
None
):
Node
.
__init__
(
self
)
...
...
@@ -486,10 +486,10 @@ class Element(Node):
def
hasAttribute
(
self
,
name
):
return
self
.
_attrs
.
has_key
(
name
)
def
hasAttributeNS
(
self
,
namespaceURI
,
localName
):
return
self
.
_attrsNS
.
has_key
((
namespaceURI
,
localName
))
return
self
.
_attrsNS
.
has_key
((
namespaceURI
,
localName
))
def
getElementsByTagName
(
self
,
name
):
return
_getElementsByTagNameHelper
(
self
,
name
,
[])
...
...
@@ -526,7 +526,7 @@ class Comment(Node):
nodeName
=
"#comment"
attributes
=
None
childNodeTypes
=
()
def
__init__
(
self
,
data
):
Node
.
__init__
(
self
)
self
.
data
=
self
.
nodeValue
=
data
...
...
@@ -538,7 +538,7 @@ class ProcessingInstruction(Node):
nodeType
=
Node
.
PROCESSING_INSTRUCTION_NODE
attributes
=
None
childNodeTypes
=
()
def
__init__
(
self
,
target
,
data
):
Node
.
__init__
(
self
)
self
.
target
=
self
.
nodeName
=
target
...
...
@@ -552,7 +552,7 @@ class Text(Node):
nodeName
=
"#text"
attributes
=
None
childNodeTypes
=
()
def
__init__
(
self
,
data
):
if
type
(
data
)
not
in
_StringTypes
:
raise
TypeError
,
"node contents must be a string"
...
...
@@ -670,7 +670,7 @@ class Document(Node):
oldChild
.
parentNode
=
None
if
self
.
documentElement
is
oldChild
:
self
.
documentElement
=
None
return
oldChild
def
_get_documentElement
(
self
):
...
...
Lib/xml/dom/pulldom.py
Dosyayı görüntüle @
52ce0d08
...
...
@@ -36,7 +36,7 @@ class PullDOM(xml.sax.ContentHandler):
def
pop
(
self
):
result
=
self
.
elementStack
[
-
1
]
del
self
.
elementStack
[
-
1
]
del
self
.
elementStack
[
-
1
]
return
result
def
setDocumentLocator
(
self
,
locator
):
...
...
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