#NEWLINE# def getKeysByGlob( self , channel , glob ) : #NEWLINE# #INDENT# db = self . _getDb ( channel ) #NEWLINE# cursor = db . cursor ( ) #NEWLINE# glob = ( '%%%s%%' % glob ) #NEWLINE# cursor . execute ( 'SELECT key FROM factoids WHERE key LIKE ?\n                          ORDER BY key' , ( glob , ) ) #NEWLINE# results = cursor . fetchall ( ) #NEWLINE# return results