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
091153d4
Kaydet (Commit)
091153d4
authored
Şub 11, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make test_sax pass.
üst
87b63950
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
test_sax.py
Lib/test/test_sax.py
+5
-6
xmlreader.py
Lib/xml/sax/xmlreader.py
+6
-6
No files found.
Lib/test/test_sax.py
Dosyayı görüntüle @
091153d4
...
...
@@ -358,11 +358,11 @@ def test_expat_nsattrs_wattr():
(
attrs
.
getQNames
()
==
[]
or
attrs
.
getQNames
()
==
[
"ns:attr"
])
and
\
len
(
attrs
)
==
1
and
\
(
ns_uri
,
"attr"
)
in
attrs
and
\
attrs
.
keys
(
)
==
[(
ns_uri
,
"attr"
)]
and
\
list
(
attrs
.
keys
()
)
==
[(
ns_uri
,
"attr"
)]
and
\
attrs
.
get
((
ns_uri
,
"attr"
))
==
"val"
and
\
attrs
.
get
((
ns_uri
,
"attr"
),
25
)
==
"val"
and
\
attrs
.
items
(
)
==
[((
ns_uri
,
"attr"
),
"val"
)]
and
\
attrs
.
values
(
)
==
[
"val"
]
and
\
list
(
attrs
.
items
()
)
==
[((
ns_uri
,
"attr"
),
"val"
)]
and
\
list
(
attrs
.
values
()
)
==
[
"val"
]
and
\
attrs
.
getValue
((
ns_uri
,
"attr"
))
==
"val"
and
\
attrs
[(
ns_uri
,
"attr"
)]
==
"val"
...
...
@@ -698,7 +698,7 @@ def test_sf_1511497():
# Bug report: http://www.python.org/sf/1511497
import
sys
old_modules
=
sys
.
modules
.
copy
()
for
modname
in
sys
.
modules
.
keys
(
):
for
modname
in
list
(
sys
.
modules
.
keys
()
):
if
modname
.
startswith
(
"xml."
):
del
sys
.
modules
[
modname
]
try
:
...
...
@@ -734,8 +734,7 @@ def make_test_output():
outf
.
write
(
result
.
getvalue
())
outf
.
close
()
items
=
locals
()
.
items
()
items
.
sort
()
items
=
sorted
(
locals
()
.
items
())
for
(
name
,
value
)
in
items
:
if
name
[
:
5
]
==
"test_"
:
confirm
(
value
(),
name
)
...
...
Lib/xml/sax/xmlreader.py
Dosyayı görüntüle @
091153d4
...
...
@@ -304,10 +304,10 @@ class AttributesImpl:
return
name
def
getNames
(
self
):
return
self
.
_attrs
.
keys
(
)
return
list
(
self
.
_attrs
.
keys
()
)
def
getQNames
(
self
):
return
self
.
_attrs
.
keys
(
)
return
list
(
self
.
_attrs
.
keys
()
)
def
__len__
(
self
):
return
len
(
self
.
_attrs
)
...
...
@@ -316,7 +316,7 @@ class AttributesImpl:
return
self
.
_attrs
[
name
]
def
keys
(
self
):
return
self
.
_attrs
.
keys
(
)
return
list
(
self
.
_attrs
.
keys
()
)
def
__contains__
(
self
,
name
):
return
name
in
self
.
_attrs
...
...
@@ -328,10 +328,10 @@ class AttributesImpl:
return
self
.
__class__
(
self
.
_attrs
)
def
items
(
self
):
return
self
.
_attrs
.
items
(
)
return
list
(
self
.
_attrs
.
items
()
)
def
values
(
self
):
return
self
.
_attrs
.
values
(
)
return
list
(
self
.
_attrs
.
values
()
)
# ===== ATTRIBUTESNSIMPL =====
...
...
@@ -363,7 +363,7 @@ class AttributesNSImpl(AttributesImpl):
return
self
.
_qnames
[
name
]
def
getQNames
(
self
):
return
self
.
_qnames
.
values
(
)
return
list
(
self
.
_qnames
.
values
()
)
def
copy
(
self
):
return
self
.
__class__
(
self
.
_attrs
,
self
.
_qnames
)
...
...
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