FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mip/python-stdlib/traceback/traceback.py at PyDevices · PyDevices/mip · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
PyDevices
/
mip
Public
forked from
micropython/micropython-lib
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
mip
/
python-stdlib
/
traceback
/
traceback.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (15 loc) · 677 Bytes
Breadcrumbs
mip
/
python-stdlib
/
traceback
/
traceback.py
Copy path
File metadata and controls
27 lines (15 loc) · 677 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import
sys
def
format_tb
(
tb
,
limit
):
return
[
"traceback.format_tb() not implemented
\n
"
]
def
format_exception_only
(
type
,
value
):
return
[
repr
(
value
)
+
"
\n
"
]
def
format_exception
(
etype
,
value
,
tb
,
limit
=
None
,
chain
=
True
):
return
format_exception_only
(
etype
,
value
)
def
print_exception
(
t
,
e
,
tb
,
limit
=
None
,
file
=
None
,
chain
=
True
):
if
file
is
None
:
file
=
sys
.
stdout
sys
.
print_exception
(
e
,
file
)
def
print_exc
(
limit
=
None
,
file
=
None
,
chain
=
True
):
print_exception
(
*
sys
.
exc_info
(),
limit
=
limit
,
file
=
file
,
chain
=
chain
)
def
format_exc
(
limit
=
None
,
chain
=
True
):
return
""
.
join
(
format_exception
(
*
sys
.
exc_info
(),
limit
=
limit
,
chain
=
chain
))
Back
|
FazBrowse Home
|
New Git URL