From fac9dab4f8d099af832cdb96a107a5a1b8510e22 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Tue, 20 Dec 2022 12:40:52 +0100 Subject: [PATCH] implement __ne__ in CreatorType for python 2 dccs --- openpype/tools/publisher/control.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openpype/tools/publisher/control.py b/openpype/tools/publisher/control.py index 615f3eb8d9..50a814de5c 100644 --- a/openpype/tools/publisher/control.py +++ b/openpype/tools/publisher/control.py @@ -788,6 +788,10 @@ class CreatorType: def __eq__(self, other): return self.name == str(other) + def __ne__(self, other): + # This is implemented only because of Python 2 + return not self == other + class CreatorTypes: base = CreatorType("base")