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
8efc62cc
Kaydet (Commit)
8efc62cc
authored
Nis 10, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #2606: Avoid calling .sort() on a dict_keys object.
üst
e2ae4684
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
trace.py
Lib/trace.py
+3
-9
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/trace.py
Dosyayı görüntüle @
8efc62cc
...
@@ -249,19 +249,15 @@ class CoverageResults:
...
@@ -249,19 +249,15 @@ class CoverageResults:
if
self
.
calledfuncs
:
if
self
.
calledfuncs
:
print
()
print
()
print
(
"functions called:"
)
print
(
"functions called:"
)
calls
=
self
.
calledfuncs
.
keys
()
for
filename
,
modulename
,
funcname
in
sorted
(
calls
.
keys
()):
calls
.
sort
()
for
filename
,
modulename
,
funcname
in
calls
:
print
((
"filename:
%
s, modulename:
%
s, funcname:
%
s"
print
((
"filename:
%
s, modulename:
%
s, funcname:
%
s"
%
(
filename
,
modulename
,
funcname
)))
%
(
filename
,
modulename
,
funcname
)))
if
self
.
callers
:
if
self
.
callers
:
print
()
print
()
print
(
"calling relationships:"
)
print
(
"calling relationships:"
)
calls
=
self
.
callers
.
keys
()
calls
.
sort
()
lastfile
=
lastcfile
=
""
lastfile
=
lastcfile
=
""
for
((
pfile
,
pmod
,
pfunc
),
(
cfile
,
cmod
,
cfunc
))
in
calls
:
for
((
pfile
,
pmod
,
pfunc
),
(
cfile
,
cmod
,
cfunc
))
in
sorted
(
self
.
callers
.
keys
())
:
if
pfile
!=
lastfile
:
if
pfile
!=
lastfile
:
print
()
print
()
print
(
"***"
,
pfile
,
"***"
)
print
(
"***"
,
pfile
,
"***"
)
...
@@ -318,10 +314,8 @@ class CoverageResults:
...
@@ -318,10 +314,8 @@ class CoverageResults:
sums
[
modulename
]
=
n_lines
,
percent
,
modulename
,
filename
sums
[
modulename
]
=
n_lines
,
percent
,
modulename
,
filename
if
summary
and
sums
:
if
summary
and
sums
:
mods
=
sums
.
keys
()
mods
.
sort
()
print
(
"lines cov
%
module (path)"
)
print
(
"lines cov
%
module (path)"
)
for
m
in
mods
:
for
m
in
sorted
(
sums
.
keys
())
:
n_lines
,
percent
,
modulename
,
filename
=
sums
[
m
]
n_lines
,
percent
,
modulename
,
filename
=
sums
[
m
]
print
(
"
%5
d
%3
d
%% %
s (
%
s)"
%
sums
[
m
])
print
(
"
%5
d
%3
d
%% %
s (
%
s)"
%
sums
[
m
])
...
...
Misc/NEWS
Dosyayı görüntüle @
8efc62cc
...
@@ -25,6 +25,8 @@ Extension Modules
...
@@ -25,6 +25,8 @@ Extension Modules
Library
Library
-------
-------
- Bug #2606: Avoid calling .sort() on a dict_keys object.
- The bundled libffi copy is now in sync with the recently released
- The bundled libffi copy is now in sync with the recently released
libffi3.0.5 version, apart from some small changes to
libffi3.0.5 version, apart from some small changes to
Modules/_ctypes/libffi/configure.ac.
Modules/_ctypes/libffi/configure.ac.
...
...
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