From 97bbca0e4390680ad60f4740a682f892eaea099f Mon Sep 17 00:00:00 2001 From: minoplhy Date: Wed, 18 Aug 2021 12:36:53 +0700 Subject: [PATCH] Close file --- crawler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crawler.py b/crawler.py index e5fcc1e..1b531b6 100644 --- a/crawler.py +++ b/crawler.py @@ -76,6 +76,7 @@ def filteringcon(filters_regex_one): for line in lines: if not line.endswith((tuple(remove_words))): f.write('\n'.join([line + '\n'])) + f.close() def killingdup(duplicated_file): print('Getting rid of duplicated line')