Skip to content

Commit 70e92d3

Browse files
committed
fix black errors
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent a59a641 commit 70e92d3

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

vulnerabilities/importers/alpine_linux.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,14 @@ def fetch_advisory_links():
4646
BASE_URL = "https://secdb.alpinelinux.org/"
4747
index_page = BeautifulSoup(requests.get(BASE_URL).content, features="lxml")
4848

49-
alpine_versions = [
50-
link.text for link in index_page.find_all("a") if link.text.startswith("v")
51-
]
49+
alpine_versions = [link.text for link in index_page.find_all("a") if link.text.startswith("v")]
5250

5351
advisory_directory_links = [f"{BASE_URL}{version}" for version in alpine_versions]
5452

5553
advisory_links = []
5654
for advisory_directory_link in advisory_directory_links:
5755
advisory_directory_page = requests.get(advisory_directory_link).content
58-
advisory_directory_page = BeautifulSoup(
59-
advisory_directory_page, features="lxml"
60-
)
56+
advisory_directory_page = BeautifulSoup(advisory_directory_page, features="lxml")
6157
advisory_links.extend(
6258
[
6359
f"{advisory_directory_link}{anchore_tag.text}"
@@ -107,29 +103,23 @@ def load_advisories(
107103
references.append(
108104
Reference(
109105
reference_id=reference_id,
110-
url="https://xenbits.xen.org/xsa/advisory-{}.html".format(
111-
xsa_id
112-
),
106+
url="https://xenbits.xen.org/xsa/advisory-{}.html".format(xsa_id),
113107
)
114108
)
115109

116110
elif reference_id.startswith("ZBX"):
117111
references.append(
118112
Reference(
119113
reference_id=reference_id,
120-
url="https://support.zabbix.com/browse/{}".format(
121-
reference_id
122-
),
114+
url="https://support.zabbix.com/browse/{}".format(reference_id),
123115
)
124116
)
125117

126118
elif reference_id.startswith("wnpa-sec"):
127119
references.append(
128120
Reference(
129121
reference_id=reference_id,
130-
url="https://www.wireshark.org/security/{}.html".format(
131-
reference_id
132-
),
122+
url="https://www.wireshark.org/security/{}.html".format(reference_id),
133123
)
134124
)
135125

0 commit comments

Comments
 (0)