Skip to content

Commit 7f52ecd

Browse files
committed
tests: fix indexing test, remove extra space/print
1 parent d5c22e3 commit 7f52ecd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pywb/rewrite/rewrite_live.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ def fetch_request(self, url, urlrewriter,
189189
if not url.startswith('file:'):
190190
url = os.path.abspath(url)
191191
url = urljoin('file:', pathname2url(url))
192-
print(url)
193192

194193
# explicit urlkey may be passed in (say for testing)
195194
if not urlkey:
@@ -200,7 +199,7 @@ def fetch_request(self, url, urlrewriter,
200199
req_headers,
201200
follow_redirects,
202201
ignore_proxies)
203-
else:
202+
else:
204203
(status_headers, stream) = self.fetch_local_file(url)
205204

206205
if timestamp is None:

pywb/warc/test/test_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def read_fully(cdx):
172172
def cdx_index(warc, **options):
173173
buff = BytesIO()
174174

175-
with open(TEST_WARC_DIR + warc, 'rU') as fh:
175+
with open(TEST_WARC_DIR + warc, 'rb') as fh:
176176
write_cdx_index(buff, fh, warc, **options)
177177

178178
return buff.getvalue()

0 commit comments

Comments
 (0)