From e147e5dd775d86f254af8375ff556b24a794af69 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Mon, 15 Nov 2021 17:25:53 +0700 Subject: [PATCH] crawler.excluded : else --- crawler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crawler.py b/crawler.py index a238022..d354236 100644 --- a/crawler.py +++ b/crawler.py @@ -159,9 +159,7 @@ def excluded(excluded ,incoming): for line in lines: if line.strip() and not line in exclude: f.write('\n'.join([line + '\n'])) - elif line.startswith((tuple(exline))): - f.write('\n'.join([line + '\n'])) - elif not line.strip(): + else: f.write('\n'.join([line + '\n'])) def blankremover(incoming):