#NEWLINE# def result_processor( self , dialect , coltype ) : #NEWLINE# #INDENT# def process( value ) : #NEWLINE# #INDENT# if isinstance ( value , datetime . datetime ) : #NEWLINE# #INDENT# return value . date ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( value , util . string_types ) : #NEWLINE# #INDENT# return datetime . date ( * [ int ( ( x or 0 ) ) for x in self . _reg . match ( value ) . groups ( ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return value #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return process