Deleted definitions of __ne__

This commit is contained in:
Mads Jensen 2017-11-26 22:43:39 +01:00 committed by Matt Westcott
parent ffd93a0d28
commit 47eca0f3d7
3 changed files with 0 additions and 12 deletions

View file

@ -398,9 +398,6 @@ class Block(metaclass=BaseBlock):
return (self.name == other.name) and (self.deconstruct() == other.deconstruct())
def __ne__(self, other):
return not self.__eq__(other)
class BoundBlock:
def __init__(self, block, value, prefix=None, errors=None):

View file

@ -425,9 +425,6 @@ class StreamValue(collections.Sequence):
return self.stream_data == other.stream_data
def __ne__(self, other):
return not self.__eq__(other)
def __len__(self):
return len(self.stream_data)

View file

@ -15,9 +15,6 @@ class Vector:
def __eq__(self, other):
return tuple(self) == tuple(other)
def __ne__(self, other):
return not (self == other)
def __repr__(self):
return 'Vector(x: %d, y: %d)' % (
self.x, self.y
@ -166,9 +163,6 @@ class Rect:
def __eq__(self, other):
return tuple(self) == tuple(other)
def __ne__(self, other):
return not (self == other)
def __repr__(self):
return 'Rect(left: %d, top: %d, right: %d, bottom: %d)' % (
self.left, self.top, self.right, self.bottom