Skip to content

Commit ac0bf4a

Browse files
terrikopdxjohnny
authored andcommitted
Blacken NVDAutoUpdate.py
1 parent d5591cb commit ac0bf4a

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

cve_bin_tool/NVDAutoUpdate.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,15 @@ def get_cvelist(
7979
t.join()
8080

8181
# extract_data(conn)
82-
cve_number, vendor_name, product_name, exploitability_score, impact_score, severity, versions = extract_data(
83-
output
84-
)
82+
(
83+
cve_number,
84+
vendor_name,
85+
product_name,
86+
exploitability_score,
87+
impact_score,
88+
severity,
89+
versions,
90+
) = extract_data(output)
8591

8692
if supplement:
8793
""" Extract supplemental data for packages from various sources """
@@ -405,9 +411,15 @@ def get_cvelist_if_stale(nvddir, dbname, quiet):
405411

406412
if not os.path.isfile(dbname):
407413
conn = init_database(dbname, quiet)
408-
cve_number, vendor_name, product_name, exploitability_score, impact_score, severity, versions = extract_data(
409-
nvddir
410-
)
414+
(
415+
cve_number,
416+
vendor_name,
417+
product_name,
418+
exploitability_score,
419+
impact_score,
420+
severity,
421+
versions,
422+
) = extract_data(nvddir)
411423
store_cve_data(
412424
conn,
413425
cve_number,

0 commit comments

Comments
 (0)