forked from ticketfrei/ticketfrei
list comprehension not needed anymore
This commit is contained in:
parent
3c7ff8f505
commit
0c64536417
|
@ -30,7 +30,8 @@ class Trigger(object):
|
||||||
trigger_words = set()
|
trigger_words = set()
|
||||||
for filename in os.listdir(path):
|
for filename in os.listdir(path):
|
||||||
with open(path + filename, "r+") as f:
|
with open(path + filename, "r+") as f:
|
||||||
[trigger_words.add(s.strip()) for s in f.readlines()]
|
for s in f.readlines():
|
||||||
|
trigger_words.add(s.strip())
|
||||||
return trigger_words
|
return trigger_words
|
||||||
|
|
||||||
def strings_ok(self, filterlist):
|
def strings_ok(self, filterlist):
|
||||||
|
|
Loading…
Reference in a new issue