mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-15 12:31:00 +00:00
Deleted definitions of __ne__
This commit is contained in:
parent
ffd93a0d28
commit
47eca0f3d7
3 changed files with 0 additions and 12 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue