From edb22515c186d4f6ce03904cf109f2557618a846 Mon Sep 17 00:00:00 2001 From: "John M. Horan" Date: Tue, 4 Oct 2022 13:01:59 -0700 Subject: [PATCH] Fix import sort #597 Reference: https://github.com/nexB/vulnerablecode/issues/597 Signed-off-by: John M. Horan --- vulnerabilities/importers/__init__.py | 2 +- vulnerabilities/importers/archlinux.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/vulnerabilities/importers/__init__.py b/vulnerabilities/importers/__init__.py index b0794564d..70a42646b 100644 --- a/vulnerabilities/importers/__init__.py +++ b/vulnerabilities/importers/__init__.py @@ -8,6 +8,7 @@ # from vulnerabilities.importers import alpine_linux +from vulnerabilities.importers import archlinux from vulnerabilities.importers import debian from vulnerabilities.importers import github from vulnerabilities.importers import gitlab @@ -17,7 +18,6 @@ from vulnerabilities.importers import pypa from vulnerabilities.importers import pysec from vulnerabilities.importers import redhat -from vulnerabilities.importers import archlinux IMPORTERS_REGISTRY = [ nginx.NginxImporter, diff --git a/vulnerabilities/importers/archlinux.py b/vulnerabilities/importers/archlinux.py index 5d993e080..c24042d80 100644 --- a/vulnerabilities/importers/archlinux.py +++ b/vulnerabilities/importers/archlinux.py @@ -8,6 +8,7 @@ # import dataclasses import json +import pprint from typing import Iterable from typing import List from typing import Mapping @@ -15,7 +16,6 @@ from urllib.request import urlopen from packageurl import PackageURL -import pprint from vulnerabilities import severity_systems from vulnerabilities.importer import AdvisoryData @@ -31,7 +31,6 @@ from vulnerabilities.utils import fetch_response from vulnerabilities.utils import nearest_patched_package - # Take a URL -> Grab the data from the URL -> Map it according to AdvisoryData