Don't reverse tracebacks

This commit is contained in:
David Vierra 2015-07-09 09:22:48 -10:00
parent 5c4ab7a592
commit 740dcb0e0f

View File

@ -64,10 +64,10 @@ def format_list(extracted_list):
whose source text line is not None. whose source text line is not None.
This function is modified to include the 5th item of the tuple as This function is modified to include the 5th item of the tuple as
the name of the class of the 'self' parameter the name of the class of the 'self' parameter.
""" """
list = [] list = []
for filename, lineno, name, line, selfstr in reversed(extracted_list): for filename, lineno, name, line, selfstr in extracted_list:
item = ' File "%s", line %d, in %s %s\n' % (filename, lineno, name, selfstr[:60]) item = ' File "%s", line %d, in %s %s\n' % (filename, lineno, name, selfstr[:60])
if line: if line:
item = item + ' %s\n' % line.strip() item = item + ' %s\n' % line.strip()