From 47eca0f3d73f07072058aa5a075d55ff65af7fca Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Sun, 26 Nov 2017 22:43:39 +0100 Subject: [PATCH] Deleted definitions of __ne__ --- wagtail/core/blocks/base.py | 3 --- wagtail/core/blocks/stream_block.py | 3 --- wagtail/images/rect.py | 6 ------ 3 files changed, 12 deletions(-) diff --git a/wagtail/core/blocks/base.py b/wagtail/core/blocks/base.py index 909fb55f3..eaea7ef6d 100644 --- a/wagtail/core/blocks/base.py +++ b/wagtail/core/blocks/base.py @@ -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): diff --git a/wagtail/core/blocks/stream_block.py b/wagtail/core/blocks/stream_block.py index e820a65e2..814f75845 100644 --- a/wagtail/core/blocks/stream_block.py +++ b/wagtail/core/blocks/stream_block.py @@ -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) diff --git a/wagtail/images/rect.py b/wagtail/images/rect.py index 791e1d1cc..9ae7eba26 100644 --- a/wagtail/images/rect.py +++ b/wagtail/images/rect.py @@ -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