diff options
author | Guido van Rossum <guido@python.org> | 2000-12-27 19:12:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-27 19:12:58 (GMT) |
commit | 7dd06966cb657bb690924ae4aa946114b04db7c3 (patch) | |
tree | d93394eb2e96037a16943dd351584dfe105cf5ee | |
parent | e0c182fb5f0c54f89b2648de23daf5a2f98fa12b (diff) | |
download | cpython-7dd06966cb657bb690924ae4aa946114b04db7c3.zip cpython-7dd06966cb657bb690924ae4aa946114b04db7c3.tar.gz cpython-7dd06966cb657bb690924ae4aa946114b04db7c3.tar.bz2 |
Make Traceback header conform to new traceback ("innermost last" ->
"most recent call last").
-rwxr-xr-x | Lib/cgi.py | 2 | ||||
-rw-r--r-- | Lib/code.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -864,7 +864,7 @@ def print_exception(type=None, value=None, tb=None, limit=None): type, value, tb = sys.exc_info() import traceback print - print "<H3>Traceback (innermost last):</H3>" + print "<H3>Traceback (most recent call last):</H3>" list = traceback.format_tb(tb, limit) + \ traceback.format_exception_only(type, value) print "<PRE>%s<B>%s</B></PRE>" % ( diff --git a/Lib/code.py b/Lib/code.py index 5f65b7c..9ef6322 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -141,7 +141,7 @@ class InteractiveInterpreter: del tblist[:1] list = traceback.format_list(tblist) if list: - list.insert(0, "Traceback (innermost last):\n") + list.insert(0, "Traceback (most recent call last):\n") list[len(list):] = traceback.format_exception_only(type, value) finally: tblist = tb = None |