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
92a40553
Kaydet (Commit)
92a40553
authored
Haz 15, 2014
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21774: Fix incorrect variable in xml.dom.minidom
üst
ef8abfc0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
test_minidom.py
Lib/test/test_minidom.py
+7
-0
minidom.py
Lib/xml/dom/minidom.py
+1
-1
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/test/test_minidom.py
Dosyayı görüntüle @
92a40553
...
...
@@ -1531,6 +1531,13 @@ class MinidomTest(unittest.TestCase):
num_children_after
=
len
(
doc
.
childNodes
)
self
.
assertTrue
(
num_children_after
==
num_children_before
-
1
)
def
testProcessingInstructionNameError
(
self
):
# wrong variable in .nodeValue property will
# lead to "NameError: name 'data' is not defined"
doc
=
parse
(
tstfile
)
pi
=
doc
.
createProcessingInstruction
(
"y"
,
"z"
)
pi
.
nodeValue
=
"crash"
def
test_main
():
run_unittest
(
MinidomTest
)
...
...
Lib/xml/dom/minidom.py
Dosyayı görüntüle @
92a40553
...
...
@@ -976,7 +976,7 @@ class ProcessingInstruction(Childless, Node):
def
_get_nodeValue
(
self
):
return
self
.
data
def
_set_nodeValue
(
self
,
value
):
self
.
data
=
data
self
.
data
=
value
nodeValue
=
property
(
_get_nodeValue
,
_set_nodeValue
)
# nodeName is an alias for target
...
...
Misc/NEWS
Dosyayı görüntüle @
92a40553
...
...
@@ -26,6 +26,10 @@ Library
run_forever() and run_until_complete() methods of asyncio.BaseEventLoop now
raise an exception if the event loop was closed.
- Issue #21774: Fixed NameError for an incorrect variable reference in the
XML Minidom code for creating processing instructions.
(Found and fixed by Claudiu Popa.)
- Issue #21766: Prevent a security hole in CGIHTTPServer by URL unquoting paths
before checking for a CGI script at that path.
...
...
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