list comprehension not needed anymore

remotes/1705286528371406548/stable1
b3yond 2017-06-25 18:13:32 +02:00
parent 3c7ff8f505
commit 0c64536417
1 changed files with 2 additions and 1 deletions

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):