#NEWLINE# def print_frames( self ) : #NEWLINE# #INDENT# 'Print the call stack, for debugging.' #NEWLINE# for f in self . frames : #NEWLINE# #INDENT# filename = f . f_code . co_filename #NEWLINE# lineno = f . line_number ( ) #NEWLINE# print ( ( '  File "%s", line %d, in %s' % ( filename , lineno , f . f_code . co_name ) ) ) #NEWLINE# linecache . checkcache ( filename ) #NEWLINE# line = linecache . getline ( filename , lineno , f . f_globals ) #NEWLINE# if line : #NEWLINE# #INDENT# print ( ( '    ' + line . strip ( ) ) )