Merge pull request #826 from croneter/fix-ne
Fix unequality when comparing sections
This commit is contained in:
commit
4dcf057631
1 changed files with 3 additions and 1 deletions
|
@ -111,7 +111,9 @@ class Section(object):
|
||||||
return (self.section_id == section.section_id and
|
return (self.section_id == section.section_id and
|
||||||
self.name == section.name and
|
self.name == section.name and
|
||||||
self.section_type == section.section_type)
|
self.section_type == section.section_type)
|
||||||
__ne__ = not __eq__
|
|
||||||
|
def __ne__(self, section):
|
||||||
|
return not self == section
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def section_id(self):
|
def section_id(self):
|
||||||
|
|
Loading…
Reference in a new issue