diff options
Diffstat (limited to 'examples/searchParserAppDemo.py')
-rw-r--r-- | examples/searchParserAppDemo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/searchParserAppDemo.py b/examples/searchParserAppDemo.py index 259e0e3..0532c1c 100644 --- a/examples/searchParserAppDemo.py +++ b/examples/searchParserAppDemo.py @@ -6,10 +6,10 @@ products = [ "grape juice", "grape jelly", "orange juice", "orange jujubees", class FruitSearchParser(SearchQueryParser):
def GetWord(self, word):
- return set( p for p in products if p.startswith(word + " ") )
+ return { p for p in products if p.startswith(word + " ") }
def GetWordWildcard(self, word):
- return set( p for p in products if p.startswith(word[:-1]) )
+ return { p for p in products if p.startswith(word[:-1]) }
def GetQuotes(self, search_string, tmp_result):
result = Set()
|