Skip to content

Commit 5df30e7

Browse files
committed
Don't use urllib3 2.x features
1 parent 37885e8 commit 5df30e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def get_google_assured_oss_packages(http: urllib3.PoolManager) -> set[str]:
478478
downloads = {}
479479
resp = http.request("GET", DOWNLOADS_URL)
480480
assert resp.status == 200
481-
for row in resp.json()["rows"]:
481+
for row in json.loads(resp.data)["rows"]:
482482
downloads[row["project"]] = row["download_count"]
483483

484484
_DB = sqlite3.connect(os.path.join(base_dir, "pypi.db"), check_same_thread=False)

0 commit comments

Comments
 (0)