Merge pull request #1 from cabrera/py3k_url_fix
fix: url includes bytes in python 3
This commit is contained in:
commit
068e0e6e07
|
@ -60,7 +60,8 @@ def main():
|
|||
sys.stderr.write('Could not get hash for ref %r\n' % ref)
|
||||
return 1
|
||||
|
||||
url = '%s/%s/%s/' % (args.base, ref_hash[:2], ref_hash)
|
||||
ref_hash_str = ref_hash.decode('utf8')
|
||||
url = '%s/%s/%s/' % (args.base, ref_hash_str[:2], ref_hash_str)
|
||||
if args.url:
|
||||
print(url)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue