From ae0c20dc7673ef1322578a1a68133889207c4c2c Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 4 Feb 2019 17:52:50 -0800 Subject: [PATCH] fix flake8 errors --- archivebox/parse.py | 2 +- archivebox/peekable.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/archivebox/parse.py b/archivebox/parse.py index bd03b89e..e53fa77a 100644 --- a/archivebox/parse.py +++ b/archivebox/parse.py @@ -84,7 +84,7 @@ def parse_pocket_export(html_file): 'base_url': base_url(fixed_url), 'timestamp': str(datetime.now().timestamp()), 'tags': match.group(3), - 'title': match.group(4).replace(' — Readability', '').replace('http://www.readability.com/read?url=', '') or fetch_page_title(url), + 'title': match.group(4).replace(' — Readability', '').replace('http://www.readability.com/read?url=', '') or fetch_page_title(fixed_url), 'sources': [html_file.name], } info['type'] = get_link_type(info) diff --git a/archivebox/peekable.py b/archivebox/peekable.py index 4780427b..69614e36 100644 --- a/archivebox/peekable.py +++ b/archivebox/peekable.py @@ -1,3 +1,5 @@ +from sys import maxsize +from itertools import islice from collections import deque _marker = object()