Commit da782167 authored by Yusei Tahara's avatar Yusei Tahara

One more fix on upload_index_network_cached for python3 compatibility.

parent 98e00a27
...@@ -245,7 +245,7 @@ def upload_index_network_cached(dir_url, cache_url, external_url, base, requirem ...@@ -245,7 +245,7 @@ def upload_index_network_cached(dir_url, cache_url, external_url, base, requirem
import tempfile import tempfile
f = tempfile.TemporaryFile() f = tempfile.TemporaryFile()
f.write(content) f.write(content.encode())
# convert '' into None in order to call nc nicely # convert '' into None in order to call nc nicely
if not signature_private_key_file: if not signature_private_key_file:
......
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