1
0
mirror of https://github.com/django/django.git synced 2025-02-01 13:19:18 +00:00

[py3] Made Element instances hashable

This commit is contained in:
Claude Paroz 2012-08-08 23:13:33 +02:00
parent b8e49d70f2
commit e0988ecd1e

View File

@ -83,6 +83,8 @@ class Element(object):
return False
return True
__hash__ = object.__hash__
def __ne__(self, element):
return not self.__eq__(element)