Permalink
Browse files

[py3] Made Element instances hashable

  • Loading branch information...
1 parent b8e49d7 commit e0988ecd1ea90fc7c75ecd9f0959cef5fd9021ff @claudep claudep committed Aug 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/test/html.py
View
@@ -83,6 +83,8 @@ def __eq__(self, element):
return False
return True
+ __hash__ = object.__hash__
+
def __ne__(self, element):
return not self.__eq__(element)

0 comments on commit e0988ec

Please sign in to comment.