From 81d846427e95a80cc92bac0b28f04c2e8d06ccf3 Mon Sep 17 00:00:00 2001 From: mlazana Date: Sun, 24 Mar 2019 19:04:22 +0200 Subject: [PATCH] fix comments in links.py --- archivebox/links.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/archivebox/links.py b/archivebox/links.py index 8ca9df94..fd8985ec 100644 --- a/archivebox/links.py +++ b/archivebox/links.py @@ -38,9 +38,7 @@ def validate_links(links): links = uniquefied_links(links) # merge/dedupe duplicate timestamps & urls links = sorted_links(links) # deterministically sort the links based on timstamp, url links = exclude_links(links) # exclude links that are in blacklist - - print(links) - + if not links: print('[X] No links found :(') raise SystemExit(1) @@ -49,7 +47,6 @@ def validate_links(links): link['title'] = unescape(link['title'].strip()) if link['title'] else None check_link_structure(link) - print("FINAL LIST", list(links)) return list(links) @@ -124,7 +121,7 @@ def lowest_uniq_timestamp(used_timestamps, timestamp): return new_timestamp def exclude_links(links): - """ exclude links that are in blacklist""" + """exclude links that are in blacklist""" links = [link for link in links if not URL_BLACKLIST.match(link['url'])]