#NEWLINE# def _recordMethod( self , className , method , * args , **kw ) : #NEWLINE# #INDENT# if self . _recordMethodCalls : #NEWLINE# #INDENT# self . methodDepth += 1 #NEWLINE# self . methodsCalled . append ( ( self . methodDepth , className , method . __name__ ) ) #NEWLINE# #UNINDENT# rv = method ( * args , ** kw ) #NEWLINE# if self . _recordMethodCalls : #NEWLINE# #INDENT# self . unusedMethods . discard ( ( className , method . __name__ ) ) #NEWLINE# self . methodDepth -= 1 #NEWLINE# #UNINDENT# return rv