minor cosmetics

This commit is contained in:
Miroslav Stampar 2011-02-01 11:10:23 +00:00
parent 196e2d35b2
commit 705d45f4db

View File

@ -2309,11 +2309,11 @@ def listToStrValue(value):
value = list(value) value = list(value)
if isinstance(value, list): if isinstance(value, list):
retValue = value.__str__().lstrip('[').rstrip(']') retVal = value.__str__().lstrip('[').rstrip(']')
else: else:
retValue = value retVal = value
return retValue return retVal
def getExceptionFrameLocals(): def getExceptionFrameLocals():
""" """
@ -2322,9 +2322,11 @@ def getExceptionFrameLocals():
""" """
retVal = {} retVal = {}
if sys.exc_info(): if sys.exc_info():
trace = sys.exc_info()[2] trace = sys.exc_info()[2]
while trace.tb_next: while trace.tb_next:
trace = trace.tb_next trace = trace.tb_next
retVal = trace.tb_frame.f_locals retVal = trace.tb_frame.f_locals
return retVal return retVal