summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/validators.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2017-01-18 21:35:59 +0100
committerTim Graham <timograham@gmail.com>2017-01-18 21:44:00 -0500
commiteb422e476f3c0070dbf200bd62d97d12150c6fd9 (patch)
tree5268a6d44f039da8adeaecea0fd605c6653a723d /django/contrib/postgres/validators.py
parent3cc5f01d9bd52930cec3c08d6ec7e19d0c2a6489 (diff)
downloaddjango-eb422e476f3c0070dbf200bd62d97d12150c6fd9.tar.gz
Refs #23919 -- Removed obsolete __ne__() methods.
__ne__() defaults to the opposite of __eq__() on Python 3 when it doesn't return NotImplemented.
Diffstat (limited to 'django/contrib/postgres/validators.py')
-rw-r--r--django/contrib/postgres/validators.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/django/contrib/postgres/validators.py b/django/contrib/postgres/validators.py
index 5676da78b0..756ae73440 100644
--- a/django/contrib/postgres/validators.py
+++ b/django/contrib/postgres/validators.py
@@ -66,9 +66,6 @@ class KeysValidator(object):
self.strict == other.strict
)
- def __ne__(self, other):
- return not (self == other)
-
class RangeMaxValueValidator(MaxValueValidator):
def compare(self, a, b):