Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3e6c335a
Commit
3e6c335a
authored
Mar 23, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert r70552; wrong fix
parent
85e1478c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/traceback.py
Lib/traceback.py
+5
-5
No files found.
Lib/traceback.py
View file @
3e6c335a
...
...
@@ -149,7 +149,7 @@ def format_exception_only(etype, value):
"""Format the exception part of a traceback.
The arguments are the exception type and value such as given by
sys.
exc_info()[0] and sys.exc_info()[1]
. The return value is a list of
sys.
last_type and sys.last_value
. The return value is a list of
strings, each ending in a newline.
Normally, the list contains a single string; however, for
...
...
@@ -239,12 +239,12 @@ def format_exc(limit=None):
def
print_last
(
limit
=
None
,
file
=
None
):
"""
This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'.
"""
"""This is a shorthand for 'print_exception(sys.last_type,
sys.last_value, sys.last_traceback, limit, file)'."""
if
file
is
None
:
file
=
sys
.
stderr
print_exception
(
*
(
sys
.
exc_info
()
+
(
limit
,
file
)))
print_exception
(
sys
.
last_type
,
sys
.
last_value
,
sys
.
last_traceback
,
limit
,
file
)
def
print_stack
(
f
=
None
,
limit
=
None
,
file
=
None
):
...
...
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