mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
[py3] Made Element instances hashable
This commit is contained in:
parent
b8e49d70f2
commit
e0988ecd1e
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ class Element(object):
|
|||
return False
|
||||
return True
|
||||
|
||||
__hash__ = object.__hash__
|
||||
|
||||
def __ne__(self, element):
|
||||
return not self.__eq__(element)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue