Fix unequality when comparing sections

This commit is contained in:
croneter 2019-04-13 12:51:14 +02:00
parent 25c2b5e782
commit 02a03bd0f2

View file

@ -111,7 +111,9 @@ class Section(object):
return (self.section_id == section.section_id and
self.name == section.name and
self.section_type == section.section_type)
__ne__ = not __eq__
def __ne__(self, section):
return not self == section
@property
def section_id(self):