From c8dd940a0677b48b65c0401bdf6a3bb4ed043e17 Mon Sep 17 00:00:00 2001 From: Jan Rodak Date: Wed, 1 Nov 2023 17:20:44 +0100 Subject: [PATCH] Fix comparation of object in python2 --- ssg/oval_object_model/general.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssg/oval_object_model/general.py b/ssg/oval_object_model/general.py index 7c747f851192..c01d241d65c5 100644 --- a/ssg/oval_object_model/general.py +++ b/ssg/oval_object_model/general.py @@ -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__