From eb422e476f3c0070dbf200bd62d97d12150c6fd9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 18 Jan 2017 21:35:59 +0100 Subject: Refs #23919 -- Removed obsolete __ne__() methods. __ne__() defaults to the opposite of __eq__() on Python 3 when it doesn't return NotImplemented. --- django/forms/utils.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'django/forms') diff --git a/django/forms/utils.py b/django/forms/utils.py index 3a86f419df..59d70178f4 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -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): -- cgit v1.3