summaryrefslogtreecommitdiff
path: root/examples/searchParserAppDemo.py
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-08-21 15:40:38 +0300
committerHugo <hugovk@users.noreply.github.com>2018-08-21 15:40:38 +0300
commitc3dba1ed5f9be226044c7ffaf1cd47adcc7482f4 (patch)
tree2c0c45c153434d0c6b78c0d5e51448933f959fb8 /examples/searchParserAppDemo.py
parent444859662f1829f2d8068fb33cdc375427bf9b6c (diff)
downloadpyparsing-git-c3dba1ed5f9be226044c7ffaf1cd47adcc7482f4.tar.gz
Upgrade Python syntax with pyupgrade
Diffstat (limited to 'examples/searchParserAppDemo.py')
-rw-r--r--examples/searchParserAppDemo.py4
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()