#NEWLINE# def rawstack( depth = 1 ) : #NEWLINE# #INDENT# data = [ ] #NEWLINE# while ( depth is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# f = sys . _getframe ( depth ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# depth = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data . append ( ( '/' . join ( f . f_code . co_filename . split ( '/' ) [ ( - 2 ) : ] ) , f . f_code . co_name , f . f_lineno ) ) #NEWLINE# depth += 1 #NEWLINE# #UNINDENT# #UNINDENT# return data