Cleanup code (#37)

* [apple,distrowatch,pypi] Remove unused imports

* [maven] use snake_case for variable names

* [eks,palo-alto-networks] Rename variables shadowing names from outer scopes

* [eks,palo-alto-networks] Remove unused variables

* [apple,haproxy,palo-alto-networks,rhel,ros,unrealircd] Rename variables shadowing built-in names
This commit is contained in:
Marc Wrobel
2022-12-14 04:50:45 +01:00
committed by GitHub
parent cb3284d507
commit b65b5ad4ee
10 changed files with 25 additions and 31 deletions

View File

@@ -8,13 +8,13 @@ import datetime
def fetch_releases(package_identifier):
groupId, artifactId = package_identifier.split("/")
group_id, artifact_id = package_identifier.split("/")
releases = {}
start = 0
while True:
url = (
"https://search.maven.org/solrsearch/select?q=g:%s+AND+a:%s&core=gav&rows=100&wt=json&start=%s"
% (groupId, artifactId, start)
% (group_id, artifact_id, start)
)
with urllib.request.urlopen(url, data=None, timeout=5) as response:
data = json.load(response)