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
aece8248
Kaydet (Commit)
aece8248
authored
Tem 25, 2015
tarafından
Robert Collins
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24710: Use cls in TracebackException.from_exception.
Minor cleanup patch from Berker Peksag.
üst
c94a1dc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
traceback.py
Lib/traceback.py
+2
-3
No files found.
Lib/traceback.py
Dosyayı görüntüle @
aece8248
...
@@ -477,10 +477,9 @@ class TracebackException:
...
@@ -477,10 +477,9 @@ class TracebackException:
self
.
_load_lines
()
self
.
_load_lines
()
@classmethod
@classmethod
def
from_exception
(
self
,
exc
,
*
args
,
**
kwargs
):
def
from_exception
(
cls
,
exc
,
*
args
,
**
kwargs
):
"""Create a TracebackException from an exception."""
"""Create a TracebackException from an exception."""
return
TracebackException
(
return
cls
(
type
(
exc
),
exc
,
exc
.
__traceback__
,
*
args
,
**
kwargs
)
type
(
exc
),
exc
,
exc
.
__traceback__
,
*
args
,
**
kwargs
)
def
_load_lines
(
self
):
def
_load_lines
(
self
):
"""Private API. force all lines in the stack to be loaded."""
"""Private API. force all lines in the stack to be loaded."""
...
...
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