Fix doc build under py3.

This commit is contained in:
Josh Matthews 2021-02-24 23:03:27 -05:00 committed by GitHub
parent 9a6ae55fd3
commit 04b89d1b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ def upload_docs():
import urllib, json, os
root_url = os.environ["TASKCLUSTER_PROXY_URL"]
url = root_url + "/api/secrets/v1/secret/project/servo/doc.servo.org"
token = json.load(urlopen(url))["secret"]["token"]
token = json.load(urllib.request.urlopen(url))["secret"]["token"]
open("/root/.git-credentials", "w").write("https://git:%s@github.com/" % token)
""")
.with_script("""