We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3057ff0 commit 2ca4605Copy full SHA for 2ca4605
script/release/uploaders/upload-index-json.py
@@ -4,7 +4,7 @@
4
import json
5
import os
6
import sys
7
-import urllib2
+from urllib.request import Request, urlopen
8
9
sys.path.append(
10
os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../.."))
@@ -28,12 +28,12 @@ def is_json(myjson):
28
29
def get_content(retry_count = 5):
30
try:
31
- request = urllib2.Request(
+ request = Request(
32
BASE_URL + version,
33
headers={"Authorization" : authToken}
34
)
35
36
- proposed_content = urllib2.urlopen(
+ proposed_content = urlopen(
37
request
38
).read()
39
0 commit comments