mirror of
https://github.com/Hopiu/django.git
synced 2026-03-30 04:40:33 +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…
Reference in a new issue