mirror of
https://github.com/django/django.git
synced 2025-09-16 23:45:38 +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:
parent
3cc5f01d9b
commit
eb422e476f
19 changed files with 0 additions and 64 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue