From: Guido van Rossum Date: Wed, 27 Dec 2000 19:12:58 +0000 (+0000) Subject: Make Traceback header conform to new traceback ("innermost last" -> X-Git-Tag: v2.1a1~476 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dd06966cb657bb690924ae4aa946114b04db7c3;p=python Make Traceback header conform to new traceback ("innermost last" -> "most recent call last"). --- diff --git a/Lib/cgi.py b/Lib/cgi.py index d4c55b73e1..345c8a199e 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -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 "

Traceback (innermost last):

" + print "

Traceback (most recent call last):

" list = traceback.format_tb(tb, limit) + \ traceback.format_exception_only(type, value) print "
%s%s
" % ( diff --git a/Lib/code.py b/Lib/code.py index 5f65b7c994..9ef6322731 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