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
b6aa92eb
Kaydet (Commit)
b6aa92eb
authored
Şub 03, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix formatting of stack entries
üst
08e767bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
bdb.py
Lib/bdb.py
+6
-2
pdb.py
Lib/pdb.py
+2
-3
No files found.
Lib/bdb.py
Dosyayı görüntüle @
b6aa92eb
...
...
@@ -253,8 +253,12 @@ class Bdb: # Basic Debugger
s
=
s
+
"<lambda>"
if
frame
.
f_locals
.
has_key
(
'__args__'
):
args
=
frame
.
f_locals
[
'__args__'
]
if
args
is
not
None
:
s
=
s
+
repr
.
repr
(
args
)
else
:
args
=
None
if
args
:
s
=
s
+
repr
.
repr
(
args
)
else
:
s
=
s
+
'()'
if
frame
.
f_locals
.
has_key
(
'__return__'
):
rv
=
frame
.
f_locals
[
'__return__'
]
s
=
s
+
'->'
...
...
Lib/pdb.py
Dosyayı görüntüle @
b6aa92eb
...
...
@@ -62,8 +62,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def
interaction
(
self
,
frame
,
traceback
):
self
.
setup
(
frame
,
traceback
)
self
.
print_stack_entry
(
self
.
stack
[
self
.
curindex
],
line_prefix
)
self
.
print_stack_entry
(
self
.
stack
[
self
.
curindex
])
self
.
cmdloop
()
self
.
forget
()
...
...
@@ -288,7 +287,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
except
KeyboardInterrupt
:
pass
def
print_stack_entry
(
self
,
frame_lineno
,
prompt_prefix
=
''
):
def
print_stack_entry
(
self
,
frame_lineno
,
prompt_prefix
=
line_prefix
):
frame
,
lineno
=
frame_lineno
if
frame
is
self
.
curframe
:
print
'>'
,
...
...
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