diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2017-01-18 21:35:59 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-18 21:44:00 -0500 |
| commit | eb422e476f3c0070dbf200bd62d97d12150c6fd9 (patch) | |
| tree | 5268a6d44f039da8adeaecea0fd605c6653a723d /django/utils/functional.py | |
| parent | 3cc5f01d9bd52930cec3c08d6ec7e19d0c2a6489 (diff) | |
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/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index 0efce6c635..2eeffa0447 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -126,11 +126,6 @@ def lazy(func, *resultclasses): # a __str__() method from the proxied class. return str(self.__cast()) - def __ne__(self, other): - if isinstance(other, Promise): - other = other.__cast() - return self.__cast() != other - def __eq__(self, other): if isinstance(other, Promise): other = other.__cast() |
