#NEWLINE# def _find_method( obj , func ) : #NEWLINE# #INDENT# if func_self : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# func_self = six . get_method_self ( func ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( func_self is obj ) : #NEWLINE# #INDENT# return six . get_method_function ( func ) . __name__ #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# raise ValueError ( ( 'Function %s is not a method of: %s' % ( func , obj ) ) )