Skip to content

Commit 6db7f31

Browse files
committed
Format code
Mostly about empty lines Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent cce6b9c commit 6db7f31

File tree

132 files changed

+373
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+373
-374
lines changed

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@
7777
]
7878

7979
master_doc = "index"
80-

vulnerabilities/forms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
class PackageSearchForm(forms.Form):
19-
2019
search = forms.CharField(
2120
required=True,
2221
widget=forms.TextInput(
@@ -26,7 +25,6 @@ class PackageSearchForm(forms.Form):
2625

2726

2827
class VulnerabilitySearchForm(forms.Form):
29-
3028
search = forms.CharField(
3129
required=True,
3230
widget=forms.TextInput(

vulnerabilities/import_runner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def process_inferences(inferences: List[Inference], advisory: Advisory, improver
179179
continue
180180

181181
for ref in inference.references:
182-
183182
reference = VulnerabilityReference.objects.get_or_none(
184183
reference_id=ref.reference_id,
185184
url=ref.url,

vulnerabilities/importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def clean_summary(self, summary):
318318
# https://github.com/cms-dev/cms/issues/888#issuecomment-516977572
319319
summary = summary.strip()
320320
if summary:
321-
summary = summary.replace("\x00", "\uFFFD")
321+
summary = summary.replace("\x00", "\ufffd")
322322
return summary
323323

324324
def to_dict(self):

vulnerabilities/importers/apache_httpd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333

3434
class ApacheHTTPDImporter(Importer):
35-
3635
base_url = "https://httpd.apache.org/security/json/"
3736
spdx_license_expression = "Apache-2.0"
3837
license_url = "https://www.apache.org/licenses/LICENSE-2.0"

vulnerabilities/importers/apache_kafka.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090

9191

9292
class ApacheKafkaImporter(Importer):
93-
9493
GH_PAGE_URL = "https://raw.githubusercontent.com/apache/kafka-site/asf-site/cve-list.html"
9594
ASF_PAGE_URL = "https://kafka.apache.org/cve-list"
9695
spdx_license_expression = "Apache-2.0"

vulnerabilities/importers/apache_tomcat.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115

116116

117117
class ApacheTomcatImporter(Importer):
118-
119118
spdx_license_expression = "Apache-2.0"
120119
license_url = "https://www.apache.org/licenses/LICENSE-2.0"
121120
importer_name = "Apache Tomcat Importer"
@@ -406,7 +405,6 @@ def to_version_ranges_apache(versions_data, fixed_versions):
406405
)
407406

408407
for fixed_item in fixed_versions:
409-
410408
if "-" in fixed_item and not any([i.isalpha() for i in fixed_item]):
411409
fixed_item_split = fixed_item.split(" ")
412410
fixed_constraint_tuple_list.append(VersionConstraintTuple(">=", fixed_item_split[0]))
@@ -497,7 +495,6 @@ def to_version_ranges_maven(versions_data, fixed_versions):
497495
)
498496

499497
for fixed_item in fixed_versions:
500-
501498
if "-" in fixed_item and not any([i.isalpha() for i in fixed_item]):
502499
fixed_item_split = fixed_item.split(" ")
503500

vulnerabilities/importers/curl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333

3434
class CurlImporter(Importer):
35-
3635
spdx_license_expression = "curl"
3736
license_url = "https://curl.se/docs/copyright.html"
3837
repo_url = "https://github.com/curl/curl-www/"

vulnerabilities/importers/debian.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333

3434
class DebianImporter(Importer):
35-
3635
spdx_license_expression = "LicenseRef-scancode-other-permissive"
3736
license_url = "https://www.debian.org/license"
3837
notice = """
@@ -96,7 +95,6 @@ def advisory_data(self) -> Iterable[AdvisoryData]:
9695
yield from self.parse(pkg_name, records)
9796

9897
def parse(self, pkg_name: str, records: Mapping[str, Any]) -> Iterable[AdvisoryData]:
99-
10098
for cve_id, record in records.items():
10199
affected_versions = []
102100
fixed_versions = []

vulnerabilities/importers/debian_oval.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class DebianOvalImporter(OvalImporter):
20-
2120
spdx_license_expression = "LicenseRef-scancode-other-permissive"
2221
license_url = "https://www.debian.org/license"
2322
notice = """

0 commit comments

Comments
 (0)