#NEWLINE# def can( self , value ) : #NEWLINE# #INDENT# if ( not super ( PromiseSerializer , self ) . can ( value ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# pre = pre . __class__ . __name__ [ 1 : ] #NEWLINE# if ( not ( hasattr ( value , ( '%s__func' % pre ) ) or hasattr ( value , ( '%s__unicode_cast' % pre ) ) or hasattr ( value , ( '%s__text_cast' % pre ) ) ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True