#NEWLINE# def _get_possible_grant_strings( self , on , username , privileges , login_from , grant_option_string ) : #NEWLINE# #INDENT# possible_on_tokens = [ ( '`%s`.*' % on ) , ( '`%s`.`*`' % on ) , ( '%s.*' % on ) ] #NEWLINE# grant_strings = [ ( "GRANT %s ON %s TO '%s'@'%s'%s" % ( privileges , on_token , grant_option_string , login_from , grant_option_string ) ) for on_token in possible_on_tokens ] #NEWLINE# return grant_strings