Skip to content

Commit

Permalink
build: migrate urllib to python3 (#33742)
Browse files Browse the repository at this point in the history
Co-authored-by: VerteDinde <vertedinde@electronjs.org>
  • Loading branch information
trop[bot] and VerteDinde committed Apr 13, 2022
1 parent 40fef39 commit a4fd0d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/release/uploaders/upload-index-json.py
Expand Up @@ -4,7 +4,7 @@
import json
import os
import sys
import urllib2
from urllib.request import Request, urlopen

sys.path.append(
os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../.."))
Expand All @@ -28,12 +28,12 @@ def is_json(myjson):

def get_content(retry_count = 5):
try:
request = urllib2.Request(
request = Request(
BASE_URL + version,
headers={"Authorization" : authToken}
)

proposed_content = urllib2.urlopen(
proposed_content = urlopen(
request
).read()

Expand Down

0 comments on commit a4fd0d3

Please sign in to comment.