From 0c64536417f519de9d13aca89cba95d7e211bf79 Mon Sep 17 00:00:00 2001 From: b3yond Date: Sun, 25 Jun 2017 18:13:32 +0200 Subject: [PATCH] list comprehension not needed anymore --- trigger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trigger.py b/trigger.py index 7be2246..989a704 100644 --- a/trigger.py +++ b/trigger.py @@ -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):