#NEWLINE# @ staticmethod #NEWLINE# def find_matches( word , choices ) : #NEWLINE# #INDENT# word = word . lower ( ) #NEWLINE# lower_choices = [ x . lower ( ) for x in choices ] #NEWLINE# completions = [ ] #NEWLINE# for ( i , choice ) in enumerate ( lower_choices ) : #NEWLINE# #INDENT# if choice . startswith ( word ) : #NEWLINE# #INDENT# completions . append ( choices [ i ] ) #NEWLINE# #UNINDENT# #UNINDENT# return x