#NEWLINE# def result_processor( self , dialect , coltype ) : #NEWLINE# #INDENT# if self . asdecimal : #NEWLINE# #INDENT# if ( coltype in _FLOAT_TYPES ) : #NEWLINE# #INDENT# return processors . to_decimal_processor_factory ( decimal . Decimal , self . _effective_decimal_return_scale ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( coltype in _DECIMAL_TYPES ) or ( coltype in _INT_TYPES ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exc . InvalidRequestError ( ( 'Unknown PG numeric type: %d' % coltype ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( coltype in _FLOAT_TYPES ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( coltype in _DECIMAL_TYPES ) or ( coltype in _INT_TYPES ) ) : #NEWLINE# #INDENT# return processors . to_float #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exc . InvalidRequestError ( ( 'Unknown PG numeric type: %d' % coltype ) )