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:
@@ -5,7 +5,7 @@ import urllib.request
|
||||
# https://regex101.com/r/1JCnFC/1
|
||||
REGEX = r"^(\d{4})\/(\d{2})\/(\d{2})\s+:\s+(\d+\.\d+\.\d.?)$"
|
||||
|
||||
list = {}
|
||||
versions = {}
|
||||
|
||||
for i in range(17, 28):
|
||||
url = "https://www.haproxy.org/download/%s/src/CHANGELOG" % (i / 10)
|
||||
@@ -16,7 +16,7 @@ for i in range(17, 28):
|
||||
if m:
|
||||
year, month, date, version = m.groups()
|
||||
abs_date = "%s-%s-%s" % (year, month, date)
|
||||
list[version] = abs_date
|
||||
versions[version] = abs_date
|
||||
|
||||
with open("releases/haproxy.json", "w") as f:
|
||||
f.write(json.dumps(list, indent=2))
|
||||
f.write(json.dumps(versions, indent=2))
|
||||
|
||||
Reference in New Issue
Block a user