We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92147f commit b8814b8Copy full SHA for b8814b8
bin/update_pythons.py
@@ -280,8 +280,12 @@ def __init__(self) -> None:
280
281
self.versions_dict: dict[Version, int] = {}
282
for release in releases_info:
283
- # Removing the prefix, Python 3.9 would use: release["name"].removeprefix("Python ")
284
- version = Version(release["name"][7:])
+ # Skip the pymanager releases
+ if not release["slug"].startswith("python"):
285
+ continue
286
+
287
+ # Removing the prefix
288
+ version = Version(release["name"].removeprefix("Python "))
289
290
uri = int(release["resource_uri"].rstrip("/").split("/")[-1])
291
self.versions_dict[version] = uri
0 commit comments