Commit 98e00a27 authored by Yusei Tahara's avatar Yusei Tahara

Fix upload_index_network_cached for python3 compatibility.

parent bd19e801
...@@ -240,7 +240,7 @@ def upload_index_network_cached(dir_url, cache_url, external_url, base, requirem ...@@ -240,7 +240,7 @@ def upload_index_network_cached(dir_url, cache_url, external_url, base, requirem
directory_key = get_index_directory_key(external_url, requirement) directory_key = get_index_directory_key(external_url, requirement)
kw = dict(file="file", kw = dict(file="file",
base=base, base=base,
urlmd5=hashlib.md5(external_url).hexdigest(), urlmd5=hashlib.md5(external_url.encode()).hexdigest(),
requirement=requirement) requirement=requirement)
import tempfile import tempfile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment