def updateChoices(self, choices):
    self.choices = sorted(filter(None, choices))
    self.searchtree = self.buildSearchTrie(choices)
def updateChoices(self, choices):
    self.choices = sorted(filter(None, choices))
    self.searchtree = self.buildSearchTrie(choices)