list comprehension not needed anymore

This commit is contained in:
b3yond 2017-06-25 18:13:32 +02:00
parent 3c7ff8f505
commit 0c64536417

View file

@ -30,7 +30,8 @@ class Trigger(object):
trigger_words = set()
for filename in os.listdir(path):
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
def strings_ok(self, filterlist):