From 705d45f4db1a446d8401cb10f82c889b72939584 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 1 Feb 2011 11:10:23 +0000 Subject: [PATCH] minor cosmetics --- lib/core/common.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 5c1ea126f..8e2afcfd5 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2309,11 +2309,11 @@ def listToStrValue(value): value = list(value) if isinstance(value, list): - retValue = value.__str__().lstrip('[').rstrip(']') + retVal = value.__str__().lstrip('[').rstrip(']') else: - retValue = value + retVal = value - return retValue + return retVal def getExceptionFrameLocals(): """ @@ -2322,9 +2322,11 @@ def getExceptionFrameLocals(): """ retVal = {} + if sys.exc_info(): trace = sys.exc_info()[2] while trace.tb_next: trace = trace.tb_next retVal = trace.tb_frame.f_locals + return retVal