Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
implement __ne__ in CreatorType for python 2 dccs
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Dec 20, 2022
1 parent 95939fb commit fac9dab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openpype/tools/publisher/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ def __str__(self):
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")
Expand Down

0 comments on commit fac9dab

Please sign in to comment.