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
c6a30ecf
Kaydet (Commit)
c6a30ecf
authored
Agu 01, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove use of tuple unpacking and dict.has_key() so as to silence
SyntaxWarning as triggered by -3.
üst
791ec1fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
bdb.py
Lib/bdb.py
+3
-3
pdb.py
Lib/pdb.py
+2
-1
No files found.
Lib/bdb.py
Dosyayı görüntüle @
c6a30ecf
...
...
@@ -131,8 +131,7 @@ class Bdb:
raise
NotImplementedError
,
"subclass of bdb must implement do_clear()"
def
break_anywhere
(
self
,
frame
):
return
self
.
breaks
.
has_key
(
self
.
canonic
(
frame
.
f_code
.
co_filename
))
return
self
.
canonic
(
frame
.
f_code
.
co_filename
)
in
self
.
breaks
# Derived classes should override the user_* methods
# to gain control.
...
...
@@ -150,7 +149,8 @@ class Bdb:
"""This method is called when a return trap is set here."""
pass
def
user_exception
(
self
,
frame
,
(
exc_type
,
exc_value
,
exc_traceback
)):
def
user_exception
(
self
,
frame
,
exc_info
):
exc_type
,
exc_value
,
exc_traceback
=
exc_info
"""This method is called if an exception occurs,
but only if we are to stop at or just below this level."""
pass
...
...
Lib/pdb.py
Dosyayı görüntüle @
c6a30ecf
...
...
@@ -175,7 +175,8 @@ class Pdb(bdb.Bdb, cmd.Cmd):
print
>>
self
.
stdout
,
'--Return--'
self
.
interaction
(
frame
,
None
)
def
user_exception
(
self
,
frame
,
(
exc_type
,
exc_value
,
exc_traceback
)):
def
user_exception
(
self
,
frame
,
exc_info
):
exc_type
,
exc_value
,
exc_traceback
=
exc_info
"""This function is called if an exception occurs,
but only if we are to stop at or just below this level."""
frame
.
f_locals
[
'__exception__'
]
=
exc_type
,
exc_value
...
...
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