Skip to content

Commit

Permalink
Fix comparation of object in python2
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Nov 8, 2023
1 parent 28b96b4 commit c8dd940
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssg/oval_object_model/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def namespace(self, __value):
__value = __value + "}"
self.__namespace = __value

def __ne__(self, __value):
return self.__dict__ != __value.__dict__

def __eq__(self, __value):
return self.__dict__ == __value.__dict__

Expand Down

0 comments on commit c8dd940

Please sign in to comment.