Bug 1507360: Fix python3.5 support in fetching hg fingerprints; r=gps

Differential Revision: https://phabricator.services.mozilla.com/D13810

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Prince 2018-12-05 16:00:20 +00:00
Родитель 84412f33c4
Коммит 13af5de7ea
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -427,7 +427,7 @@ def vcs_checkout(source_repo, dest, store_path,
res = urllib.request.urlopen(FINGERPRINT_URL, timeout=10)
secret = res.read()
try:
secret = json.loads(secret, encoding='utf-8')
secret = json.loads(secret.decode('utf-8'))
except ValueError:
print_line(b'vcs', b'invalid JSON in hg fingerprint secret')
sys.exit(1)