#NEWLINE# def executeSQL( self , db , dbCommand , isFetch ) : #NEWLINE# #INDENT# data = None #NEWLINE# cursor = db . cursor ( ) #NEWLINE# cursor . execute ( self ) #NEWLINE# if isFetch : #NEWLINE# #INDENT# data = cursor . fetchall ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = cursor . lastrowid #NEWLINE# #UNINDENT# cursor . close ( ) #NEWLINE# return data