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
2ad07c30
Kaydet (Commit)
2ad07c30
authored
Eyl 16, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Small PEP8 correction.
üst
7b1c4141
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
traceback.py
Lib/traceback.py
+3
-3
No files found.
Lib/traceback.py
Dosyayı görüntüle @
2ad07c30
...
@@ -70,11 +70,11 @@ def print_tb(tb, limit=None, file=None):
...
@@ -70,11 +70,11 @@ def print_tb(tb, limit=None, file=None):
tb
=
tb
.
tb_next
tb
=
tb
.
tb_next
n
=
n
+
1
n
=
n
+
1
def
format_tb
(
tb
,
limit
=
None
):
def
format_tb
(
tb
,
limit
=
None
):
"""A shorthand for 'format_list(extract_stack(f, limit))."""
"""A shorthand for 'format_list(extract_stack(f, limit))."""
return
format_list
(
extract_tb
(
tb
,
limit
))
return
format_list
(
extract_tb
(
tb
,
limit
))
def
extract_tb
(
tb
,
limit
=
None
):
def
extract_tb
(
tb
,
limit
=
None
):
"""Return list of up to limit pre-processed entries from traceback.
"""Return list of up to limit pre-processed entries from traceback.
This is useful for alternate formatting of stack traces. If
This is useful for alternate formatting of stack traces. If
...
@@ -304,7 +304,7 @@ def format_stack(f=None, limit=None):
...
@@ -304,7 +304,7 @@ def format_stack(f=None, limit=None):
f
=
sys
.
exc_info
()[
2
]
.
tb_frame
.
f_back
f
=
sys
.
exc_info
()[
2
]
.
tb_frame
.
f_back
return
format_list
(
extract_stack
(
f
,
limit
))
return
format_list
(
extract_stack
(
f
,
limit
))
def
extract_stack
(
f
=
None
,
limit
=
None
):
def
extract_stack
(
f
=
None
,
limit
=
None
):
"""Extract the raw traceback from the current stack frame.
"""Extract the raw traceback from the current stack frame.
The return value has the same format as for extract_tb(). The
The return value has the same format as for extract_tb(). The
...
...
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