Skip to content

Commit

Permalink
Don't use urllib3 2.x features
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Oct 6, 2024
1 parent 37885e8 commit 5df30e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def get_google_assured_oss_packages(http: urllib3.PoolManager) -> set[str]:
downloads = {}
resp = http.request("GET", DOWNLOADS_URL)
assert resp.status == 200
for row in resp.json()["rows"]:
for row in json.loads(resp.data)["rows"]:
downloads[row["project"]] = row["download_count"]

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

0 comments on commit 5df30e7

Please sign in to comment.