Skip to content

Commit 3ad394c

Browse files
committed
Addressing issues reported by flake8.
1 parent 95c5b38 commit 3ad394c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cyclonedx/output/json.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
from abc import ABC, abstractmethod
32

43
from . import BaseOutput
54
from .schema import BaseSchemaVersion, SchemaVersion1Dot0, SchemaVersion1Dot1, SchemaVersion1Dot2, SchemaVersion1Dot3
@@ -12,7 +11,7 @@ def output_as_string(self) -> str:
1211
return json.dumps(self._get_json())
1312

1413
def output_to_file(self, filename: str):
15-
raise NotImplemented
14+
raise NotImplementedError
1615

1716
def _get_json(self) -> dict:
1817
components = list(map(self._get_component_as_dict, self.get_bom().get_components()))

cyclonedx/output/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from abc import ABC, abstractmethod
1+
from abc import ABC
22

33

44
class BaseSchemaVersion(ABC):

cyclonedx/output/xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def output_as_string(self) -> str:
2424
return Xml.XML_VERSION_DECLARATION + ElementTree.tostring(bom, 'unicode')
2525

2626
def output_to_file(self, filename: str):
27-
pass
27+
raise NotImplementedError
2828

2929
def _component_supports_bom_ref_attribute(self) -> bool:
3030
return True

0 commit comments

Comments
 (0)