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
cd4a21bb
Kaydet (Commit)
cd4a21bb
authored
Şub 06, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix more unbound locals in code paths that do not seem to be used.
üst
bd564c3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
test_cfgparser.py
Lib/test/test_cfgparser.py
+2
-1
test_minidom.py
Lib/test/test_minidom.py
+2
-1
test_platform.py
Lib/test/test_platform.py
+4
-2
No files found.
Lib/test/test_cfgparser.py
Dosyayı görüntüle @
cd4a21bb
...
...
@@ -17,8 +17,9 @@ class SortedDict(UserDict.UserDict):
return
result
def
values
(
self
):
# XXX never used?
result
=
self
.
items
()
return
[
i
[
1
]
for
i
in
values
]
return
[
i
[
1
]
for
i
in
result
]
def
iteritems
(
self
):
return
iter
(
self
.
items
())
def
iterkeys
(
self
):
return
iter
(
self
.
keys
())
...
...
Lib/test/test_minidom.py
Dosyayı görüntüle @
cd4a21bb
...
...
@@ -1456,12 +1456,13 @@ class MinidomTest(unittest.TestCase):
self
.
confirm
(
len
(
n1
.
entities
)
==
len
(
n2
.
entities
)
and
len
(
n1
.
notations
)
==
len
(
n2
.
notations
))
for
i
in
range
(
len
(
n1
.
notations
)):
# XXX this loop body doesn't seem to be executed?
no1
=
n1
.
notations
.
item
(
i
)
no2
=
n1
.
notations
.
item
(
i
)
self
.
confirm
(
no1
.
name
==
no2
.
name
and
no1
.
publicId
==
no2
.
publicId
and
no1
.
systemId
==
no2
.
systemId
)
sta
t
ck
.
append
((
no1
,
no2
))
stack
.
append
((
no1
,
no2
))
for
i
in
range
(
len
(
n1
.
entities
)):
e1
=
n1
.
entities
.
item
(
i
)
e2
=
n2
.
entities
.
item
(
i
)
...
...
Lib/test/test_platform.py
Dosyayı görüntüle @
cd4a21bb
...
...
@@ -182,8 +182,10 @@ class PlatformTest(unittest.TestCase):
if
os
.
path
.
isdir
(
sys
.
executable
)
and
\
os
.
path
.
exists
(
sys
.
executable
+
'.exe'
):
# Cygwin horror
executable
=
executable
+
'.exe'
res
=
platform
.
libc_ver
(
sys
.
executable
)
executable
=
sys
.
executable
+
'.exe'
else
:
executable
=
sys
.
executable
res
=
platform
.
libc_ver
(
executable
)
def
test_parse_release_file
(
self
):
...
...
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