Skip to content

Commit

Permalink
Remove unnecessary overwrite of the init function
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Dec 19, 2023
1 parent 2f16956 commit e94c992
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions ssg/oval_object_model/oval_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ class OVALDocument(OVALContainer):
product_version = ""
__ssg_version = ""

def __init__(self):
super(OVALDocument, self).__init__()

@property
def ssg_version(self):
return self.__ssg_version
Expand Down
3 changes: 0 additions & 3 deletions ssg/oval_object_model/oval_entities/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class GeneralCriteriaNode(OVALBaseObject):
comment = ""
applicability_check = False

def __init__(self, tag):
super(GeneralCriteriaNode, self).__init__(tag)

def get_xml_element(self):
el = ElementTree.Element(self.tag_name)
if self.applicability_check:
Expand Down
2 changes: 0 additions & 2 deletions ssg/oval_object_model/oval_entities/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def load_object(oval_object_xml_el):


class ObjectOVAL(OVALEntity):
def __init__(self, tag, id_, properties):
super(ObjectOVAL, self).__init__(tag, id_, properties)

def get_xml_element(self):
return super(ObjectOVAL, self).get_xml_element()
Expand Down
3 changes: 0 additions & 3 deletions ssg/oval_object_model/oval_entities/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ def load_state(oval_state_xml_el):
class State(OVALEntity):
operator = "AND"

def __init__(self, tag, id_, properties):
super(State, self).__init__(tag, id_, properties)

def get_xml_element(self):
return super(State, self).get_xml_element(operator=self.operator)

Expand Down
3 changes: 0 additions & 3 deletions ssg/oval_object_model/oval_shorthand.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ def _is_definitions_applicable_for_product(definitions_dict, product):


class OVALShorthand(OVALContainer):
def __init__(self):
super(OVALShorthand, self).__init__()

def _load_element(self, xml_el):
if xml_el.tag.endswith("definition"):
self.load_definition(xml_el)
Expand Down

0 comments on commit e94c992

Please sign in to comment.