Skip to content

Commit 1a9fbfe

Browse files
committed
Fix formatting tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 3d5d79b commit 1a9fbfe

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

vulnerabilities/importers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from vulnerabilities.importers import debian_oval
1414
from vulnerabilities.importers import github
1515
from vulnerabilities.importers import gitlab
16+
from vulnerabilities.importers import mozilla
1617
from vulnerabilities.importers import nginx
1718
from vulnerabilities.importers import npm
1819
from vulnerabilities.importers import nvd
@@ -41,6 +42,7 @@
4142
debian_oval.DebianOvalImporter,
4243
npm.NpmImporter,
4344
retiredotnet.RetireDotnetImporter,
45+
mozilla.MozillaImporter,
4446
]
4547

4648
IMPORTERS_REGISTRY = {x.qualified_name: x for x in IMPORTERS_REGISTRY}

vulnerabilities/importers/mozilla.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99

10-
import re
1110
import logging
11+
import re
1212
from pathlib import Path
1313
from typing import Iterable
1414
from typing import List
@@ -31,6 +31,7 @@
3131
MFSA_FILENAME_RE = re.compile(r"mfsa(\d{4}-\d{2,3})\.(md|yml)$")
3232
logger = logging.getLogger(__name__)
3333

34+
3435
class MozillaImporter(Importer):
3536
spdx_license_expression = "MPL-2.0"
3637
license_url = "https://github.com/mozilla/foundation-security-advisories/blob/master/LICENSE"
@@ -144,7 +145,7 @@ def get_affected_packages(pkgs: List[str]) -> List[PackageURL]:
144145
name = pkg.rsplit(None, 1)[0]
145146
if version and name:
146147
try:
147-
fixed_version=SemverVersion(version)
148+
fixed_version = SemverVersion(version)
148149
yield AffectedPackage(
149150
package=PackageURL(
150151
type="mozilla",

0 commit comments

Comments
 (0)