From 740dcb0e0f3393668bf930b0495ca4a4f6087dec Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 9 Jul 2015 09:22:48 -1000 Subject: [PATCH] Don't reverse tracebacks --- src/mcedit2/util/custom_traceback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcedit2/util/custom_traceback.py b/src/mcedit2/util/custom_traceback.py index 416b840..cf56d61 100644 --- a/src/mcedit2/util/custom_traceback.py +++ b/src/mcedit2/util/custom_traceback.py @@ -64,10 +64,10 @@ def format_list(extracted_list): whose source text line is not None. 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 = [] - 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]) if line: item = item + ' %s\n' % line.strip()