mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Refs #23919 -- Removed obsolete __ne__() methods.
__ne__() defaults to the opposite of __eq__() on Python 3 when it doesn't return NotImplemented.
This commit is contained in:
committed by
Tim Graham
parent
3cc5f01d9b
commit
eb422e476f
@@ -133,9 +133,6 @@ class ErrorList(UserList, list):
|
||||
def __eq__(self, other):
|
||||
return list(self) == other
|
||||
|
||||
def __ne__(self, other):
|
||||
return list(self) != other
|
||||
|
||||
def __getitem__(self, i):
|
||||
error = self.data[i]
|
||||
if isinstance(error, ValidationError):
|
||||
|
||||
Reference in New Issue
Block a user