#NEWLINE# def bind_processor( self , dialect ) : #NEWLINE# #INDENT# if ( self . convert_unicode or dialect . convert_unicode ) : #NEWLINE# #INDENT# if ( dialect . supports_unicode_binds and ( warn_on_bytestring . convert_unicode != 'force' ) ) : #NEWLINE# #INDENT# if self . _warn_on_bytestring : #NEWLINE# #INDENT# def process( value ) : #NEWLINE# #INDENT# if isinstance ( value , util . binary_type ) : #NEWLINE# #INDENT# util . warn_limited ( 'Unicode type received non-unicode bind param value %r.' , ( util . ellipses_string ( value ) , ) ) #NEWLINE# #UNINDENT# return value #NEWLINE# #UNINDENT# return process #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# encoder = codecs . getencoder ( dialect . encoding ) #NEWLINE# warn_on_bytestring = self . _warn_on_bytestring #NEWLINE# def process( value ) : #NEWLINE# #INDENT# if isinstance ( value , util . text_type ) : #NEWLINE# #INDENT# return encoder ( value , self . unicode_error ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( warn_on_bytestring and ( value is not None ) ) : #NEWLINE# #INDENT# util . warn_limited ( 'Unicode type received non-unicode bind param value %r.' , ( util . ellipses_string ( value ) , ) ) #NEWLINE# #UNINDENT# #UNINDENT# return value #NEWLINE# #UNINDENT# #UNINDENT# return process #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None