PEATSA/Core/Utilities.py
def GetTraceback():

	'''Returns the current stack traceback as a string'''
	
	#Get the traceback as a string = convoluted ....
	trace = traceback.format_list(traceback.extract_tb(sys.exc_info()[2]))
	trace = reduce(lambda x, y: x + y, trace)
	#Need to remove single quotes from the traceback	
	trace = trace.replace("'", " ")

	return trace
Returns the current stack traceback as a string
Returns the current stack traceback as a string
Returns the current stack traceback as a string
def GetTraceback():
	trace = traceback.format_list(traceback.extract_tb(sys.exc_info()[2]))
	trace = reduce(lambda x, y: x + y, trace)
	trace = trace.replace("'", " ")
	return trace
def GetTraceback ( ) : trace = traceback . format_list ( traceback . extract_tb ( sys . exc_info ( ) [ 2 ] ) ) trace = reduce ( lambda x , y : x + y , trace ) trace = trace . replace ( "'" , " " ) return trace
Returns the current stack traceback as a string
Returns the current stack traceback as a string
'''Returns the current stack traceback as a string''' #Get the traceback as a string = convoluted .... #Need to remove single quotes from the traceback	