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

@@ -3,7 +3,6 @@ import urllib.request
import datetime
from bs4 import BeautifulSoup
import re
from html.parser import HTMLParser
URLS = [
"https://support.apple.com/en-us/HT201222", # latest
@@ -51,8 +50,8 @@ release_lists = {k: {} for k in CONFIG.keys()}
print("::group::apple")
def parse_date(input):
d, m, y = input.strip().split(" ")
def parse_date(s):
d, m, y = s.strip().split(" ")
m = m[0:3].lower()
return datetime.datetime.strptime("%s %s %s" % (d, m, y), "%d %b %Y")