From 7ffffcb8f80c6781fab37205bdefde1b7bb57325 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Wed, 18 Aug 2021 12:40:34 +0700 Subject: [PATCH] Fix close --- crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler.py b/crawler.py index 1b531b6..f8e7421 100644 --- a/crawler.py +++ b/crawler.py @@ -76,7 +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() + f.close() def killingdup(duplicated_file): print('Getting rid of duplicated line')