Skip to content

Commit

Permalink
tests: fix indexing test, remove extra space/print
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Jan 10, 2015
1 parent d5c22e3 commit 7f52ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pywb/rewrite/rewrite_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def fetch_request(self, url, urlrewriter,
if not url.startswith('file:'):
url = os.path.abspath(url)
url = urljoin('file:', pathname2url(url))
print(url)

# explicit urlkey may be passed in (say for testing)
if not urlkey:
Expand All @@ -200,7 +199,7 @@ def fetch_request(self, url, urlrewriter,
req_headers,
follow_redirects,
ignore_proxies)
else:
else:
(status_headers, stream) = self.fetch_local_file(url)

if timestamp is None:
Expand Down
2 changes: 1 addition & 1 deletion pywb/warc/test/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def read_fully(cdx):
def cdx_index(warc, **options):
buff = BytesIO()

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

return buff.getvalue()
Expand Down

0 comments on commit 7f52ecd

Please sign in to comment.