#NEWLINE# def _execute_statements( self , cursor , statements , parameters , verbosity ) : #NEWLINE# #INDENT# for template in statements : #NEWLINE# #INDENT# stmt = ( template % parameters ) #NEWLINE# if ( verbosity >= 2 ) : #NEWLINE# #INDENT# print ( stmt ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# cursor . execute ( stmt ) #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# sys . stderr . write ( ( 'Failed (%s)\n' % err ) ) #NEWLINE# raise