From 5df30e7c24732bf46de5cf134e69e226b8f64b00 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Sun, 6 Oct 2024 08:40:12 -0500 Subject: [PATCH] Don't use urllib3 2.x features --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4a77ed23..d8c986da 100644 --- a/main.py +++ b/main.py @@ -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)